4get/docker/init.sh
ngn b31ebb1145
add ups config and fix formatting
Signed-off-by: ngn <ngn@ngn.tf>
2025-05-02 11:08:18 +03:00

12 lines
204 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