File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -21,4 +21,4 @@ The following flags are a list of all the currently supported options that can b
2121 - ** RUN_SCRIPTS** : Set to 1 to execute scripts
2222 - ** PGID** : Set to GroupId you want to use for nginx (helps permissions when using local volume)
2323 - ** PUID** : Set to UserID you want to use for nginx (helps permissions when using local volume)
24-
24+ - ** REMOVE_FILES ** : Use REMOVE_FILES=0 to prevent the script from clearing out /var/www/html (useful for working with local files)
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ The latest tag will always follow the master branch in git. the other versions w
2121| 1.1.3 | 1.1.3 | 1.11.10 | 7.1.2 | 3.4 | 0.2.6 |
2222| 1.1.4 | 1.1.4 | 1.11.10 | 7.1.2 | 3.4 | 0.2.6 |
2323| 1.1.5 | 1.1.5 | 1.11.10 | 7.1.2 | 3.4 | 0.2.7 |
24+ | 1.1.6 | 1.1.6 | 1.11.10 | 7.1.2 | 3.4 | 0.2.8 |
2425
2526These tags will be created as releases on GitHub and as tags in docker hub.
2627
Original file line number Diff line number Diff line change 3636if [ ! -d " /var/www/html/.git" ]; then
3737 # Pull down code from git for our site!
3838 if [ ! -z " $GIT_REPO " ]; then
39- # Remove the test index file
40- rm -Rf /var/www/html/*
39+ # Remove the test index file if you are pulling in a git repo
40+ if [ ! -z ${REMOVE_FILES} ] && [ ${REMOVE_FILES} == 0 ]; then
41+ echo " skiping removal of files"
42+ else
43+ rm -Rf /var/www/html/*
44+ fi
4145 GIT_COMMAND=' git clone '
4246 if [ ! -z " $GIT_BRANCH " ]; then
4347 GIT_COMMAND=${GIT_COMMAND} " -b ${GIT_BRANCH} "
You can’t perform that action at this time.
0 commit comments