mirror of https://github.com/tteck/Proxmox.git
parent
7446dc4c73
commit
a95657947d
13
ct/zoraxy.sh
13
ct/zoraxy.sh
|
@ -58,16 +58,15 @@ if [[ ! -d /opt/zoraxy/src ]]; then msg_error "No ${APP} Installation Found!"; e
|
||||||
msg_info "Updating $APP"
|
msg_info "Updating $APP"
|
||||||
systemctl stop zoraxy
|
systemctl stop zoraxy
|
||||||
cd /opt/zoraxy/src
|
cd /opt/zoraxy/src
|
||||||
if ! git pull; then
|
systemctl stop zoraxy
|
||||||
echo "Already up to date."
|
if git pull | grep -q 'Already up to date.'; then
|
||||||
systemctl start zoraxy
|
msg_ok "Already up to date. No update required."
|
||||||
echo "No update required."
|
else
|
||||||
exit
|
|
||||||
fi
|
|
||||||
go mod tidy
|
go mod tidy
|
||||||
go build
|
go build
|
||||||
systemctl start zoraxy
|
|
||||||
msg_ok "Updated $APP"
|
msg_ok "Updated $APP"
|
||||||
|
fi
|
||||||
|
systemctl start zoraxy
|
||||||
exit
|
exit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue