mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-09-19 09:40:07 +00:00
Gatus: check for GO path before update (#7705)
This commit is contained in:
parent
30e22ff661
commit
515c4073c4
@ -33,6 +33,11 @@ function update_script() {
|
|||||||
systemctl stop gatus
|
systemctl stop gatus
|
||||||
msg_ok "Stopped $APP"
|
msg_ok "Stopped $APP"
|
||||||
|
|
||||||
|
if [[ :$PATH: != *":/usr/local/bin:"* ]]; then
|
||||||
|
echo 'export PATH="/usr/local/bin:$PATH"' >>~/.bashrc
|
||||||
|
source ~/.bashrc
|
||||||
|
fi
|
||||||
|
|
||||||
mv /opt/gatus/config/config.yaml /opt
|
mv /opt/gatus/config/config.yaml /opt
|
||||||
rm -rf /opt/gatus
|
rm -rf /opt/gatus
|
||||||
fetch_and_deploy_gh_release "gatus" "TwiN/gatus"
|
fetch_and_deploy_gh_release "gatus" "TwiN/gatus"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user