Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ Quick and dirty provisioning script, will install the following on a bare Debian

Usage:

sh -c "`curl https://raw.github.com/cruncher/provision/wheezy/provision.sh`"
sh -c "`curl -L https://raw.github.com/cruncher/provision/wheezy/provision.sh`"


10 changes: 5 additions & 5 deletions provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fi
apt-get -y update
apt-get -y upgrade
apt-get -y dist-upgrade
apt-get install -y sudo
apt-get install -y sudo curl

echo "Cmnd_Alias PROJECT_CMND = /usr/local/bin/supervisorctl status*, /usr/local/bin/supervisorctl restart*, /etc/init.d/nginx reload*" >> /etc/sudoers
echo "# xxx ALL=(root) NOPASSWD: PROJECT_CMND" >> /etc/sudoers
Expand All @@ -40,7 +40,7 @@ apt-get autoremove -y
apt-get purge

apt-get -y install nginx postgresql postgresql-client postgresql-contrib libpq-dev postgis postgresql-9.1-postgis gdal-contrib gdal-bin mcelog apt-dater-host
apt-get -y install memcached libjpeg-dev libfreetype6-dev python-dev python-virtualenv python-pip git-core screen zsh vim gettext duplicity ncftp shorewall unzip
apt-get -y install memcached libjpeg-dev libfreetype6-dev python-dev python-virtualenv python-pip git-core screen zsh vim gettext duplicity ncftp shorewall unzip ncurses-dev

ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib
ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib
Expand Down Expand Up @@ -88,7 +88,7 @@ wget --no-check-certificate https://raw.github.com/Supervisor/initscripts/master
sed -i 's/DAEMON=\/usr\/bin/DAEMON=\/usr\/local\/bin/g' debian-norrgard
sed -i 's/SUPERVISORCTL=\/usr\/bin/SUPERVISORCTL=\/usr\/local\/bin/g' debian-norrgard
sed -i 's/DAEMON_ARGS="--pidfile \${PIDFILE}"/DAEMON_ARGS="--pidfile \${PIDFILE} -c \/etc\/supervisord.conf"/g' debian-norrgard
sed -i 's/# server_names_hash_bucket_size 64/server_names_hash_bucket_size 64/g'
sed -i 's/# server_names_hash_bucket_size 64/server_names_hash_bucket_size 64/g' /etc/nginx/nginx.conf
mv debian-norrgard /etc/init.d/supervisord
chmod +x /etc/init.d/supervisord
update-rc.d supervisord defaults
Expand Down Expand Up @@ -168,8 +168,8 @@ sed -i 's/#PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd
/etc/init.d/ssh restart

cd
curl -O https://raw.github.com/cruncher/provision/master/user_add.sh
curl -O https://raw.github.com/cruncher/provision/master/duplicity.sh
curl -OL https://raw.github.com/cruncher/provision/master/user_add.sh
curl -OL https://raw.github.com/cruncher/provision/master/duplicity.sh

cd
mkdir -p .ssh
Expand Down