diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 9b226ca..0000000 --- a/.gitignore +++ /dev/null @@ -1,3 +0,0 @@ -# gitignore - -entrypoint.config \ No newline at end of file diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index a720e16..9164aa2 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -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}/* diff --git a/entrypoint.config b/entrypoint.config new file mode 100644 index 0000000..5876f4f --- /dev/null +++ b/entrypoint.config @@ -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"