added config file
This commit is contained in:
commit
a1d87eb9e3
3
.gitignore
vendored
3
.gitignore
vendored
@ -1,3 +0,0 @@
|
||||
# gitignore
|
||||
|
||||
entrypoint.config
|
@ -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
9
entrypoint.config
Normal 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"
|
Loading…
Reference in New Issue
Block a user