-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provisioning script to set everything up, including apt dependencies
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|