Compare commits

..

No commits in common. "e52b7872d27b68d283abfc05a222dd7134528059" and "ab394e04aba4696e205e20306a99bf940f4bd296" have entirely different histories.

1 changed files with 7 additions and 4 deletions

View File

@ -56,13 +56,16 @@ if [[ ! -d /opt/homarr ]]; then msg_error "No ${APP} Installation Found!"; exit;
msg_info "Updating $APP"
systemctl stop homarr
cd /opt/homarr
cp -R data data-backup
git stash &>/dev/null
output=$(git pull)
git pull &>/dev/null
if echo "$output" | grep -q "Already up to date."
then
msg_ok " $APP is already up to date."
systemctl start homarr
exit
fi
yarn install &>/dev/null
yarn build &>/dev/null
cp -R data-backup/* data
rm -rf data-backup
systemctl start homarr
msg_ok "Updated $APP"
exit