diff --git a/docker/init.sh b/docker/init.sh index 3f50168..21926e8 100644 --- a/docker/init.sh +++ b/docker/init.sh @@ -1,8 +1,10 @@ #!/bin/sh set -e -php ./gen_config.php -rm ./gen_config.php +if [ ! -f '/var/www/html/4get/data/config.php' ] && [ -f './gen_config.php' ]; then + php ./gen_config.php + rm -f ./gen_config.php +fi echo "Starting up apache2" exec httpd -DFOREGROUND