bugfix for bin/twlight_mysql_init.sh
@@ -9,22 +9,22 @@ fi
if [ -f ${SECRETS_DIR}/DJANGO_DB_NAME ]
then
- DJANGO_DB_NAME=$(cat /run/secrets/DJANGO_DB_NAME)
+ DJANGO_DB_NAME=$(cat ${SECRETS_DIR}/DJANGO_DB_NAME)
fi
if [ -f ${SECRETS_DIR}/DJANGO_DB_USER ]
then
- DJANGO_DB_USER=$(cat /run/secrets/DJANGO_DB_USER)
+ DJANGO_DB_USER=$(cat ${SECRETS_DIR}/DJANGO_DB_USER)
fi
if [ -f ${SECRETS_DIR}/DJANGO_DB_PASSWORD ]
then
- DJANGO_DB_PASSWORD=$(cat /run/secrets/DJANGO_DB_PASSWORD)
+ DJANGO_DB_PASSWORD=$(cat ${SECRETS_DIR}/DJANGO_DB_PASSWORD)
fi
if [ -f ${SECRETS_DIR}/MYSQL_ROOT_PASSWORD ]
then
- MYSQL_ROOT_PASSWORD=$(cat /run/secrets/MYSQL_ROOT_PASSWORD)
+ MYSQL_ROOT_PASSWORD=$(cat ${SECRETS_DIR}/MYSQL_ROOT_PASSWORD)
fi
if [ -n "${MYSQL_ROOT_PASSWORD+isset}" ]
