Code Review
/
icn.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Use Vagrantfile to build virtual site
[icn.git]
/
env
/
cd_package_installer.sh
diff --git
a/env/cd_package_installer.sh
b/env/cd_package_installer.sh
index
6370f01
..
abf8429
100755
(executable)
--- a/
env/cd_package_installer.sh
+++ b/
env/cd_package_installer.sh
@@
-1,5
+1,5
@@
#!/usr/bin/env bash
#!/usr/bin/env bash
-set -e
x
+set -e
ux -o pipefail
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
@@
-17,14
+17,17
@@
function install_essential_packages {
nmap \
patch \
psmisc \
nmap \
patch \
psmisc \
- python-pip \
- python-requests \
- python-setuptools \
+ python
3
-pip \
+ python
3
-requests \
+ python
3
-setuptools \
vim \
wget \
git \
software-properties-common
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
add-apt-repository -y ppa:longsleep/golang-backports
apt-get update
apt-get install -y golang-go