Closes issue #40 rm /usr/share/nginx/html/*

This commit is contained in:
Ric Harvey
2016-06-16 09:56:03 +01:00
parent 7e34409f03
commit f0660ec428

View File

@@ -22,7 +22,8 @@ fi
# Pull down code form git for our site!
if [ ! -z "$GIT_REPO" ]; then
rm /var/www/html/*
rm -Rf /var/www/html
mkdir /var/www/html
if [ ! -z "$GIT_BRANCH" ]; then
git clone -b $GIT_BRANCH $GIT_REPO /var/www/html/
else