mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-22 17:33:12 +00:00
test if other env is set
This commit is contained in:
@@ -19,7 +19,9 @@ FILE=config/configuration.yml
|
|||||||
|
|
||||||
if [ -f "$FILE" ]; then
|
if [ -f "$FILE" ]; then
|
||||||
echo "$FILE exists, skip setup."
|
echo "$FILE exists, skip setup."
|
||||||
bin/setup system:config set registry.general.title $PHRASEANET_PROJECT_NAME
|
if [[ $PHRASEANET_PROJECT_NAME ]]; then
|
||||||
|
bin/setup system:config set registry.general.title $PHRASEANET_PROJECT_NAME
|
||||||
|
fi
|
||||||
if [[ $PHRASEANET_SMTP_ENABLED && $PHRASEANET_SMTP_ENABLED=true ]]; then
|
if [[ $PHRASEANET_SMTP_ENABLED && $PHRASEANET_SMTP_ENABLED=true ]]; then
|
||||||
bin/setup system:config set registry.email.smtp-enabled $PHRASEANET_SMTP_ENABLED
|
bin/setup system:config set registry.email.smtp-enabled $PHRASEANET_SMTP_ENABLED
|
||||||
bin/setup system:config set registry.email.smtp-auth-enabled $PHRASEANET_SMTP_AUTH_ENABLED
|
bin/setup system:config set registry.email.smtp-auth-enabled $PHRASEANET_SMTP_AUTH_ENABLED
|
||||||
@@ -31,7 +33,10 @@ if [ -f "$FILE" ]; then
|
|||||||
bin/setup system:config set registry.email.emitter-email $PHRASEANET_EMITTER_EMAIL
|
bin/setup system:config set registry.email.emitter-email $PHRASEANET_EMITTER_EMAIL
|
||||||
bin/setup system:config set registry.email.prefix $PHRASEANET_MAIL_OBJECT_PREFIX
|
bin/setup system:config set registry.email.prefix $PHRASEANET_MAIL_OBJECT_PREFIX
|
||||||
fi
|
fi
|
||||||
bin/console user:password --user_id=1 --password $PHRASEANET_ADMIN_ACCOUNT_PASSWORD -y
|
if [[ $PHRASEANET_ADMIN_ACCOUNT_PASSWORD ]]; then
|
||||||
|
bin/console user:password --user_id=1 --password $PHRASEANET_ADMIN_ACCOUNT_PASSWORD -y
|
||||||
|
fi
|
||||||
|
|
||||||
else
|
else
|
||||||
echo "$FILE doesn't exist, entering setup..."
|
echo "$FILE doesn't exist, entering setup..."
|
||||||
runuser app -c docker/phraseanet/auto-install.sh
|
runuser app -c docker/phraseanet/auto-install.sh
|
||||||
|
Reference in New Issue
Block a user