4get/docker/init.sh
ngn 52145d2fc3
All checks were successful
Build and publish the docker image / build (push) Successful in 29s
prevent init script from breaking the image
Signed-off-by: ngn <ngn@ngn.tf>
2025-01-21 14:36:00 +03:00

11 lines
205 B
Bash

#!/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