mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-06-27 10:42:20 -04:00
Fix logic.. this is embarrasing
This commit is contained in:
@@ -4,7 +4,8 @@ echo "ensuring golang is in PATH"
|
||||
if grep -q -E '^(export )?PATH=' /etc/services.d/code-server/run; then
|
||||
if ! grep -q -E '^(export )?PATH=.*/usr/local/go/bin.*' /etc/services.d/code-server/run; then
|
||||
sed -i '/PATH/ s/$/:\/usr\/local\/go\/bin/' /etc/services.d/code-server/run
|
||||
elif ! grep -q -E '^(export )?PATH=.*/config/go/bin:.*' /etc/services.d/code-server/run; then
|
||||
fi
|
||||
if ! grep -q -E '^(export )?PATH=.*/config/go/bin:.*' /etc/services.d/code-server/run; then
|
||||
sed -i 's/PATH=/PATH=\/config\/go\/bin:/g' /etc/services.d/code-server/run
|
||||
fi
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user