4get/docker/init.sh

11 lines
205 B
Bash
Raw Permalink Normal View History

#!/bin/sh
set -e
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