added config file

This commit is contained in:
André Bauer 2016-12-19 21:41:33 +01:00
commit a1d87eb9e3
3 changed files with 13 additions and 7 deletions

3
.gitignore vendored
View File

@ -1,3 +0,0 @@
# gitignore
entrypoint.config

View File

@ -1,9 +1,5 @@
#!/bin/bash
export RAILS_ENV="${RAILS_ENV}"
shopt -s dotglob
if [ ! -f entrypoint.config ]; then
echo "entrypoint.config not found! create it from entrypoint.config.dist before running this script!"
exit 1
@ -11,6 +7,10 @@ fi
. entrypoint.config
export RAILS_ENV=${RAILS_ENV}
shopt -s dotglob
if [ "${FRESH_INSTALL}" == "yes" ]; then
echo "fresh install requested. delting everything in ${ZAMMAD_DIR}"
rm -rf ${ZAMMAD_DIR}/*

9
entrypoint.config Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
ZAMMAD_DIR="/home/zammad"
GIT_URL="https://github.com/monotek/zammad.git"
GIT_BRANCH="unicorn"
FRESH_INSTALL="no"
RAILS_SERVER="unicorn"
DEBUG="no"
RAILS_ENV="production"