-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathprovision.sh
More file actions
32 lines (29 loc) · 829 Bytes
/
provision.sh
File metadata and controls
32 lines (29 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#! /bin/bash
if [ ! -f /home/vagrant/already-installed-flag ]
then
echo "ADD EXTRA ALIAS VIA .bashrc"
cat /vagrant/bashrc.append.txt >> /home/vagrant/.bashrc
echo "GENERAL APT-GET UPDATE"
apt-get -qq update
echo "INSTALL NODEJS"
apt-get -qq -y install nodejs
echo "INSTALL NPM"
apt-get -qq -y install npm
echo "INSTALL GIT"
apt-get -qq -y install git
echo "INSTALL VIM"
apt-get -qq -y install vim
echo "INSTALL TREE"
apt-get -qq -y install tree
echo "INSTALL UNZIP"
apt-get -qq -y install unzip
echo "CLONING GITHUB CODE"
cd /home/vagrant
git clone https://github.com/angular/angular-phonecat.git
cd angular-phonecat
git checkout -f step-0
touch /home/vagrant/already-installed-flag
echo "Done!"
else
echo "already installed flag set : /home/vagrant/already-installed-flag"
fi