Compare commits

..

3 Commits

Author SHA1 Message Date
tteckster e52b7872d2
Update homarr.sh
redo update
fixes https://github.com/tteck/Proxmox/issues/1774
2023-09-08 21:43:08 -04:00
tteckster 8c0155e64b
Update homarr.sh
modify git update
2023-09-08 15:00:34 -04:00
tteckster e48b2bd0df
Update homarr.sh
modify git update
2023-09-08 14:40:53 -04:00
1 changed files with 4 additions and 7 deletions

View File

@ -56,16 +56,13 @@ if [[ ! -d /opt/homarr ]]; then msg_error "No ${APP} Installation Found!"; exit;
msg_info "Updating $APP" msg_info "Updating $APP"
systemctl stop homarr systemctl stop homarr
cd /opt/homarr cd /opt/homarr
output=$(git pull) cp -R data data-backup
git stash &>/dev/null
git pull &>/dev/null 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 install &>/dev/null
yarn build &>/dev/null yarn build &>/dev/null
cp -R data-backup/* data
rm -rf data-backup
systemctl start homarr systemctl start homarr
msg_ok "Updated $APP" msg_ok "Updated $APP"
exit exit