Skip to content

Commit

Permalink
Provisioning script to set everything up, including apt dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
tedivm committed Jun 13, 2016
1 parent 81734ec commit 73ec403
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions provisioning/provision.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/usr/bin/env bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd -P )"
cd $DIR
pwd

apt_quiet_install () {
echo "** Install package $1 **"
DEBIAN_FRONTEND=noninteractive apt-get -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" -y -f -q install $1
}


# Install Development Tools
echo "** Install Development Tools **"
apt_quiet_install git
apt_quiet_install python-dev
apt_quiet_install python-pip


echo "** Install virtualenv **"
pip install virtualenv


echo "** make screeps-stats project **"
cd $DIR/../
make

echo "** install screeps-stats project **"
make install


if [ -f "$DIR/../.screeps_settings.yaml" ]; then
echo "** Settings Found: Launching Stats Daemon **"
systemctl start screepsstats.service
fi

0 comments on commit 73ec403

Please sign in to comment.