From a3c11bb0677de2126128954c8b5f44672f963e0d Mon Sep 17 00:00:00 2001 From: Ric Harvey Date: Thu, 25 Jun 2015 13:05:43 +0000 Subject: [PATCH] Working Git scripts --- pull | 4 ---- push | 1 + start.sh | 1 + 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pull b/pull index 2f1c06f..8a726da 100755 --- a/pull +++ b/pull @@ -3,15 +3,11 @@ if [ -z "$GIT_EMAIL" ]; then echo "You need to pass the \$GIT_EMAIL variable to the container for this to work" exit -else - echo $GIT_EMAIL fi if [ -z "$GIT_NAME" ]; then echo "You need to pass the \$GIT_NAME variable to the container for this to work" exit -else - echo $GIT_NAME fi cd /usr/share/nginx/html diff --git a/push b/push index 3f2eb0a..4fb06cb 100755 --- a/push +++ b/push @@ -18,3 +18,4 @@ ts=$(timestamp) cd /usr/share/nginx/html git add * git commit -a -m "push from container $ts" +git push diff --git a/start.sh b/start.sh index 14c575e..dd3a739 100644 --- a/start.sh +++ b/start.sh @@ -11,6 +11,7 @@ if [ ! -z "$GIT_EMAIL" ]; then fi if [ ! -z "$GIT_NAME" ]; then git config --global user.name "$GIT_NAME" + git config --global push.default simple fi # Pull down code form git for our site!