prevent init script from breaking the image
All checks were successful
Build and publish the docker image / build (push) Successful in 29s

Signed-off-by: ngn <ngn@ngn.tf>
This commit is contained in:
ngn 2025-01-21 14:36:00 +03:00
parent 25642917e0
commit 52145d2fc3
Signed by: ngn
GPG Key ID: A3654DF5AD9F641D

View File

@ -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