Beta test of pull and push scripts

This commit is contained in:
Ric Harvey
2015-06-25 10:23:06 +00:00
parent b13602c7e7
commit b525568b72
4 changed files with 52 additions and 0 deletions

View File

@@ -5,6 +5,14 @@
mkdir -p -m 0700 /root/.ssh
echo -e "Host *\n\tStrictHostKeyChecking no\n" >> /root/.ssh/config
# Setup git variables
if [ ! -z "$GIT_EMAIL" ]; then
git config --global user.email "$GIT_EMAIL"
fi
if [ ! -z "$GIT_NAME" ]; then
git config --global user.name "$GIT_NAME"
fi
# Pull down code form git for our site!
if [ ! -z "$GIT_REPO" ]; then
rm /usr/share/nginx/html/*