This commit is contained in:
Girish Ramakrishnan 2023-10-27 12:12:30 +02:00
parent 3947d62faf
commit 87f9c4f33f
1 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ if ! [ -f /app/data/.installed ]; then
--db-base "${CLOUDRON_MYSQL_DATABASE}" --db-prefix "" \
--disable_update
if [ -z "${CLOUDRON_OIDC_ISSUER:-}" ]; then
if [[ -z "${CLOUDRON_OIDC_ISSUER:-}" ]]; then
php cli/create-user.php --user admin --password changeme --language en
fi
@ -63,4 +63,4 @@ chown -R www-data.www-data /run/php /app/data /tmp/log_api.txt
echo "==> Starting apache"
APACHE_CONFDIR="" source /etc/apache2/envvars
rm -f "${APACHE_PID_FILE}"
exec /usr/sbin/apache2 -D FOREGROUND $([ -n "$CLOUDRON_OIDC_ISSUER" ] && echo '-D OIDC_ENABLED')
exec /usr/sbin/apache2 -D FOREGROUND $([[ -n "$CLOUDRON_OIDC_ISSUER" ]] && echo '-D OIDC_ENABLED')