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