From 35f705591773a2539920890a309c55a364e78778 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bauer?= Date: Tue, 20 Dec 2016 13:51:56 +0100 Subject: [PATCH] cleaning up --- docker-entrypoint.sh | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index a1a94be..c597edc 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -7,20 +7,20 @@ GIT_BRANCH="develop" #GIT_BRANCH="unicorn" RAILS_SERVER="puma" RAILS_ENV="production" -FRESH_INSTALL="no" +FRESH_INSTALL="yes" DEBUG="no" -export RAILS_ENV=${RAILS_ENV} - -shopt -s dotglob - -if [ "${FRESH_INSTALL}" == "yes" ]; then - echo "fresh install requested. deleting everything in ${ZAMMAD_DIR}" - rm -rf ${ZAMMAD_DIR}/* -fi - if [ "$1" = 'zammad' ]; then + export RAILS_ENV=${RAILS_ENV} + + shopt -s dotglob + + if [ "${FRESH_INSTALL}" == "yes" ]; then + echo "fresh install requested. deleting everything in ${ZAMMAD_DIR}" + rm -rf ${ZAMMAD_DIR}/* + fi + # get zammad if [ -f ${ZAMMAD_DIR}/config/database.yml ]; then echo "updating zammad..."