X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=env%2Fcd_package_installer.sh;h=71bae01bd236086abc41c2223e98d6d1b25a2847;hb=5692960cdda248031aec4876df774419fab29bee;hp=6370f01fd61a0808382a6f2c52fa3995894379c6;hpb=066bb8cf144cc33ddc7d2743d2437881db19b28d;p=icn.git diff --git a/env/cd_package_installer.sh b/env/cd_package_installer.sh index 6370f01..71bae01 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" @@ -10,6 +10,7 @@ function install_essential_packages { export DEBIAN_FRONTEND=noninteractive apt-get update apt-get -y install \ + ca-certificates \ crudini \ curl \ dnsmasq \ @@ -17,14 +18,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