Tidy up directory structure

This commit is contained in:
Ric Harvey
2016-01-18 22:08:03 +00:00
parent fab810f3f6
commit 5a4ecbcf35
7 changed files with 6 additions and 6 deletions

21
scripts/push Executable file
View File

@@ -0,0 +1,21 @@
#!/bin/bash
timestamp() {
date +"%D %T"
}
if [ -z "$GIT_EMAIL" ]; then
echo "You need to pass the \$GIT_EMAIL variable to the container for this to work"
exit
fi
if [ -z "$GIT_NAME" ]; then
echo "You need to pass the \$GIT_NAME variable to the container for this to work"
exit
fi
ts=$(timestamp)
cd /usr/share/nginx/html
git add *
git commit -a -m "push from container $ts"
git push