|
|
|
@ -19,7 +19,7 @@ export APT="apt --quiet --yes" |
|
|
|
|
export WGET="wget --quiet --no-check-certificate" |
|
|
|
|
|
|
|
|
|
# install nodejs source list |
|
|
|
|
if ! $WGET --output-document=- https://deb.nodesource.com/setup_6.x | bash -; then |
|
|
|
|
if ! $WGET --output-document=- https://deb.nodesource.com/setup_13.x | bash -; then |
|
|
|
|
echo "unable to set nodejs repository" |
|
|
|
|
exit 1 |
|
|
|
|
fi |
|
|
|
@ -32,7 +32,7 @@ rm -f packages-microsoft-prod.deb |
|
|
|
|
$APT update |
|
|
|
|
|
|
|
|
|
# download and install golang |
|
|
|
|
GO_VERSION="1.13" |
|
|
|
|
GO_VERSION="1.13.5" |
|
|
|
|
GO_INSTALL_PATH="/usr/local" |
|
|
|
|
download_url="https://storage.googleapis.com/golang/go${GO_VERSION}.linux-amd64.tar.gz" |
|
|
|
|
if ! $WGET --output-document=- "$download_url" | tar -C "${GO_INSTALL_PATH}" -zxf -; then |
|
|
|
|