Updated to support custom module install and switch template off by default

This commit is contained in:
Ric Harvey
2016-02-27 19:15:59 +00:00
parent 5a4ecbcf35
commit 3ec76e00ba
3 changed files with 19 additions and 8 deletions

View File

@@ -14,6 +14,12 @@ if [ ! -z "$GIT_NAME" ]; then
git config --global push.default simple
fi
# Install Extras
if [ ! -z "$DEBS" ]; then
apt-get update
apt-get install -y $DEBS
fi
# Pull down code form git for our site!
if [ ! -z "$GIT_REPO" ]; then
rm /usr/share/nginx/html/*
@@ -37,7 +43,7 @@ procs=$(cat /proc/cpuinfo |grep processor | wc -l)
sed -i -e "s/worker_processes 5/worker_processes $procs/" /etc/nginx/nginx.conf
# Very dirty hack to replace variables in code with ENVIRONMENT values
if [[ "$TEMPLATE_NGINX_HTML" != "0" ]] ; then
if [[ "$TEMPLATE_NGINX_HTML" == "1" ]] ; then
for i in $(env)
do
variable=$(echo "$i" | cut -d'=' -f1)