X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=env%2Fcd_package_installer.sh;h=abf8429ea0674d15ed3e3ad0f699064865369f4b;hb=48be5e6170ea991b809a4f07f86376eec9b8e1fd;hp=6370f01fd61a0808382a6f2c52fa3995894379c6;hpb=066bb8cf144cc33ddc7d2743d2437881db19b28d;p=icn.git diff --git a/env/cd_package_installer.sh b/env/cd_package_installer.sh index 6370f01..abf8429 100755 --- a/env/cd_package_installer.sh +++ b/env/cd_package_installer.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -set -ex +set -eux -o pipefail if [[ $EUID -ne 0 ]]; then echo "This script must be run as root" @@ -17,14 +17,17 @@ function install_essential_packages { nmap \ patch \ psmisc \ - python-pip \ - python-requests \ - python-setuptools \ + python3-pip \ + python3-requests \ + python3-setuptools \ vim \ wget \ git \ software-properties-common + update-alternatives --install /usr/bin/python python /usr/bin/python3 1 + update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1 + add-apt-repository -y ppa:longsleep/golang-backports apt-get update apt-get install -y golang-go