PHRDPL-60 #comment Check the INSTALL_* env vars for auto installation

This commit is contained in:
Alexandre BRACH
2019-06-06 18:32:43 +02:00
parent a81eca2962
commit abf9b821d9
3 changed files with 37 additions and 2 deletions

View File

@@ -2,4 +2,13 @@
envsubst < /php.ini.sample > /usr/local/etc/php/php.ini
envsubst < /php-fpm.conf.sample > /usr/local/etc/php-fpm.conf
FILE=/var/alchemy/Phraseanet/config/configuration.yml
if [ -f "$FILE" ]; then
echo "$FILE exist, skip setup."
else
echo "$FILE doesn't exist, entering setup..."
runuser app -c '/auto-install.sh'
fi
php-fpm