adding awesome tag/commit pull feature by Jaesin @ github

This commit is contained in:
Ric Harvey
2018-06-19 10:56:24 +01:00
parent 1836953c43
commit 17c77147ea
2 changed files with 8 additions and 0 deletions

View File

@@ -58,6 +58,12 @@ if [ ! -d "/var/www/html/.git" ]; then
fi
fi
${GIT_COMMAND} /var/www/html || exit 1
if [ ! -z "$GIT_TAG" ]; then
git checkout ${GIT_TAG} || exit 1
fi
if [ ! -z "$GIT_COMMIT" ]; then
git checkout ${GIT_COMMIT} || exit 1
fi
if [ -z "$SKIP_CHOWN" ]; then
chown -Rf nginx.nginx /var/www/html
fi