From 792e79fb49ec06e3f4431050867b1804e0db32fc Mon Sep 17 00:00:00 2001 From: Robin Date: Tue, 15 Mar 2022 11:38:28 +0100 Subject: [PATCH] Add env var to force run composer install --- php_fpm/entrypoint.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/php_fpm/entrypoint.sh b/php_fpm/entrypoint.sh index cc30853..85aab9e 100644 --- a/php_fpm/entrypoint.sh +++ b/php_fpm/entrypoint.sh @@ -9,8 +9,14 @@ fi if [ -n "$(ls -A /data 2>/dev/null)" ] then echo "Data directory contains files, not downloading NamelessMC" + + if [ -n "$NAMELESS_COMPOSER_INSTALL" ] + then + echo "NAMELESS_COMPOSER_INSTALL set, running composer install..." + composer install + fi else - echo "Data directory is empty, downloading NamelessMC.." + echo "Data directory is empty, downloading NamelessMC..." set -x mkdir -p /data cd /tmp