mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2026-05-05 23:50:33 +00:00
Gatus: check for GO path before update (#7705)
This commit is contained in:
parent
30e22ff661
commit
515c4073c4
1 changed files with 5 additions and 0 deletions
|
|
@ -33,6 +33,11 @@ function update_script() {
|
|||
systemctl stop gatus
|
||||
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
|
||||
rm -rf /opt/gatus
|
||||
fetch_and_deploy_gh_release "gatus" "TwiN/gatus"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue