mirror of
https://github.com/TrezOne/docker-mods-uptime-kuma-timeout-fix.git
synced 2026-07-10 01:43:49 -04:00
code-server-golang: multi arch
This commit is contained in:
@@ -8,3 +8,12 @@ if grep -q '^PATH=' /etc/services.d/code-server/run; then
|
||||
else
|
||||
sed -i '/^#!\/usr\/bin/a \\n# Added by codeserver-golang\nexport PATH=$PATH:/usr/local/go/bin' /etc/services.d/code-server/run
|
||||
fi
|
||||
|
||||
ARCH=$(uname -m)
|
||||
if [ -f "/golang/golang_${ARCH}.tar.gz" ]; then
|
||||
echo "Installing golang"
|
||||
tar xzf "/golang/golang_${ARCH}.tar.gz" -C /usr/local
|
||||
rm -rf /golang
|
||||
else
|
||||
echo "Golang already installed, skipping"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user