mirror of https://github.com/tteck/Proxmox.git
Compare commits
3 Commits
ab394e04ab
...
e52b7872d2
Author | SHA1 | Date |
---|---|---|
|
e52b7872d2 | |
|
8c0155e64b | |
|
e48b2bd0df |
11
ct/homarr.sh
11
ct/homarr.sh
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue