From 962b7c9fa82fde158f4cb0f1030249b1ea56614f Mon Sep 17 00:00:00 2001 From: Alexandre BRACH Date: Fri, 15 Nov 2019 16:38:59 +0100 Subject: [PATCH] autoinstall #comment check vars on auto-install --- docker/phraseanet/auto-install.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docker/phraseanet/auto-install.sh b/docker/phraseanet/auto-install.sh index 4028e5a614..b69490fd03 100755 --- a/docker/phraseanet/auto-install.sh +++ b/docker/phraseanet/auto-install.sh @@ -2,6 +2,16 @@ set -xe +if [ $INSTALL_ACCOUNT_EMAIL = ""]; then + echo "INSTALL_ACCOUNT_EMAIL var is not set." + exit 1 +fi + +if [ $INSTALL_ACCOUNT_PASSWORD = ""]; then + echo "INSTALL_ACCOUNT_PASSWORD var is not set." + exit 1 +fi + /var/alchemy/Phraseanet/bin/setup system:install \ --email=$INSTALL_ACCOUNT_EMAIL \ --password=$INSTALL_ACCOUNT_PASSWORD \