Skip to content

Commit 515c407

Browse files
authored
Gatus: check for GO path before update (#7705)
1 parent 30e22ff commit 515c407

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ct/gatus.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ function update_script() {
3333
systemctl stop gatus
3434
msg_ok "Stopped $APP"
3535

36+
if [[ :$PATH: != *":/usr/local/bin:"* ]]; then
37+
echo 'export PATH="/usr/local/bin:$PATH"' >>~/.bashrc
38+
source ~/.bashrc
39+
fi
40+
3641
mv /opt/gatus/config/config.yaml /opt
3742
rm -rf /opt/gatus
3843
fetch_and_deploy_gh_release "gatus" "TwiN/gatus"

0 commit comments

Comments
 (0)