code-server-golang: multi arch

This commit is contained in:
aptalca
2020-05-18 17:05:13 -04:00
parent 260a0f01f6
commit a12d90ea84
2 changed files with 17 additions and 4 deletions
+9
View File
@@ -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