cleaning up
This commit is contained in:
parent
c08423c5ad
commit
35f7055917
@ -7,20 +7,20 @@ GIT_BRANCH="develop"
|
|||||||
#GIT_BRANCH="unicorn"
|
#GIT_BRANCH="unicorn"
|
||||||
RAILS_SERVER="puma"
|
RAILS_SERVER="puma"
|
||||||
RAILS_ENV="production"
|
RAILS_ENV="production"
|
||||||
FRESH_INSTALL="no"
|
FRESH_INSTALL="yes"
|
||||||
DEBUG="no"
|
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
|
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
|
# get zammad
|
||||||
if [ -f ${ZAMMAD_DIR}/config/database.yml ]; then
|
if [ -f ${ZAMMAD_DIR}/config/database.yml ]; then
|
||||||
echo "updating zammad..."
|
echo "updating zammad..."
|
||||||
|
Loading…
Reference in New Issue
Block a user