"added token support"

This commit is contained in:
Dan Robertson
2016-08-09 13:58:32 +01:00
parent f4ea5fac41
commit aaf1b21ec8

View File

@@ -33,7 +33,7 @@ if [ ! -d "/var/www/html/.git" ]; then
# Pull down code from git for our site! # Pull down code from git for our site!
if [ ! -z "$GIT_REPO" ]; then if [ ! -z "$GIT_REPO" ]; then
# Remove the test index file # Remove the test index file
rm -Rf /var/www/html/index.html rm -Rf /var/www/html/*
if [ ! -z "$GIT_BRANCH" ]; then if [ ! -z "$GIT_BRANCH" ]; then
if [ -z "$GIT_USERNAME" ] && [ -z "$GIT_PERSONAL_TOKEN" ]; then if [ -z "$GIT_USERNAME" ] && [ -z "$GIT_PERSONAL_TOKEN" ]; then
git clone -b $GIT_BRANCH $GIT_REPO /var/www/html/ git clone -b $GIT_BRANCH $GIT_REPO /var/www/html/