mirror of
https://github.com/tteck/Proxmox.git
synced 2024-12-27 15:31:59 +00:00
Update homarr.sh
modify git update
This commit is contained in:
parent
e48b2bd0df
commit
8c0155e64b
24
ct/homarr.sh
24
ct/homarr.sh
@ -58,22 +58,22 @@ systemctl stop homarr
|
|||||||
cd /opt/homarr
|
cd /opt/homarr
|
||||||
output=$(git pull 2>&1)
|
output=$(git pull 2>&1)
|
||||||
if echo "$output" | grep -q "Already up to date."
|
if echo "$output" | grep -q "Already up to date."
|
||||||
then
|
then
|
||||||
msg_ok "$APP is already up to date."
|
msg_ok "$APP is already up to date."
|
||||||
systemctl start homarr
|
systemctl start homarr
|
||||||
else
|
else
|
||||||
if ! git pull; then
|
if ! git pull; then
|
||||||
echo "Update failed, temporarily storing changes and trying again."
|
echo "Update failed, temporarily storing changes and trying again."
|
||||||
git stash && git pull || (
|
git stash && git pull || (
|
||||||
echo "Update failed even after storing changes. Aborting."
|
echo "Update failed even after storing changes. Aborting."
|
||||||
exit 1
|
exit 1
|
||||||
)
|
)
|
||||||
fi
|
yarn install &>/dev/null
|
||||||
|
yarn build &>/dev/null
|
||||||
|
systemctl start homarr
|
||||||
|
msg_ok "Updated $APP"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
yarn install &>/dev/null
|
|
||||||
yarn build &>/dev/null
|
|
||||||
systemctl start homarr
|
|
||||||
msg_ok "Updated $APP"
|
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user