-
Notifications
You must be signed in to change notification settings - Fork 9
/
provision.sh
executable file
·32 lines (24 loc) · 1.09 KB
/
provision.sh
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
32
#!/bin/sh
# if the provisioning.lock file exists do not provision
{
if [ ! -f /vagrant/provision.lock ]; then
# add nodejs repository
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv C7917B12
echo 'deb http://ppa.launchpad.net/chris-lea/node.js/ubuntu precise main' | tee /etc/apt/sources.list.d/chris-lea-node_js-precise.list
echo 'deb-src http://ppa.launchpad.net/chris-lea/node.js/ubuntu precise main' | tee -a /etc/apt/sources.list.d/chris-lea-node_js-precise.list
# add mongodb repository
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | tee /etc/apt/sources.list.d/mongodb.list
# update ubuntu pacakges
apt-get -y update
# install packages
apt-get -y install python-software-properties python g++ make mongodb-10gen nodejs git sendmail
# install node supervisor
# https://github.com/isaacs/node-supervisor
npm install supervisor -g
## install node uglify
npm install uglify-js -g
# create the provisioning lock file
touch /vagrant/provision.lock
fi
}