Files
4get/docker/init.sh
ngn 54b3588c3a
All checks were successful
docker / docker (push) Successful in 22s
clean config, support read-only non-root docker
Signed-off-by: ngn <ngn@ngn.tf>
2025-07-11 15:33:40 +03:00

18 lines
394 B
Bash

#!/bin/sh -e
config='/srv/4get/data/config.php'
defconfig='/srv/4get/data/config.def.php'
# check for the configuration file
if [ ! -f "${config}" ]; then
echo "configuration file not specified"
echo "here's the default configuration, modify and mount this to ${config}"
echo
cat "${defconfig}"
exit 1
fi
# execute apache
echo "starting apache web server"
exec httpd -D FOREGROUND