fixes
This commit is contained in:
parent
b0639d42ab
commit
73deb75987
6
launch
6
launch
@ -11,9 +11,9 @@ export DJANGO_SECRET_KEY=$(openssl rand -hex 32)
|
||||
export GUNICORN_WORKERS=${GUNICORN_WORKERS:-1}
|
||||
export SITE_URI=${SITE_URI:-http://example.com}
|
||||
export SITE_FQDN=$(echo $SITE_URI | sed -e "s/[^/]*\/\/\([^@]*@\)\?\([^:/]*\).*/\2/")
|
||||
[ "${SITE_URI::5}" == "https" ] && SITE_SCHEME="https" || SITE_SCHEME="http"
|
||||
[[ "${SITE_URI::5}" == "https" ]] && SITE_SCHEME="https" || SITE_SCHEME="http"
|
||||
export SITE_SCHEME
|
||||
[ ${PUBLIC_REGISTER,,} == "false" ] \
|
||||
[[ ${PUBLIC_REGISTER,,} == "false" ]] \
|
||||
&& { PUBLIC_REGISTER="False"; PUBLIC_REGISTER_JS="false"; } \
|
||||
|| { PUBLIC_REGISTER="True"; PUBLIC_REGISTER_JS="true"; }
|
||||
export PUBLIC_REGISTER PUBLIC_REGISTER_JS
|
||||
@ -45,7 +45,7 @@ chmod +x /already_initialized
|
||||
unset DJANGO_SECRET_KEY TAIGA_DB_PASSWORD
|
||||
|
||||
# Make sure the dynamic data is writable by the circus/gunicorn
|
||||
chown -Rh $USER:$GROUP $DATA/media $DATA/taiga-back/taiga/locale $DATA/logs
|
||||
chown -Rh $USER:$GROUP $DATA/media $DATA/static $DATA/taiga-back/taiga/locale $DATA/logs
|
||||
|
||||
# Make sure the PostgreSQL database is up and ready
|
||||
while ! timeout 1 bash -c 'cat < /dev/null > /dev/tcp/$TAIGA_DB_HOST/$TAIGA_DB_PORT' >/dev/null 2>&1; do
|
||||
|
Loading…
Reference in New Issue
Block a user