2023-08-23 23:31:08 +00:00
|
|
|
#!/bin/sh
|
2023-08-25 01:50:05 +00:00
|
|
|
set -e
|
2024-02-09 09:59:25 +00:00
|
|
|
if [ ! -f /etc/4get/certs/fullchain.pem ] || [ ! -f /etc/4get/certs/privkey.pem ]; then
|
|
|
|
echo "Using http configuration"
|
|
|
|
cp /etc/apache2/http.conf /etc/apache2/httpd.conf
|
|
|
|
else
|
|
|
|
echo "Using https configuration"
|
|
|
|
cp /etc/apache2/https.conf /etc/apache2/httpd.conf
|
2023-09-22 21:20:39 +00:00
|
|
|
fi
|
|
|
|
|
2024-01-09 07:14:27 +00:00
|
|
|
php82 ./docker/gen_config.php
|
|
|
|
|
|
|
|
|
2023-09-22 21:20:39 +00:00
|
|
|
echo "4get is running"
|
2023-08-25 01:50:05 +00:00
|
|
|
exec httpd -DFOREGROUND
|
2023-09-22 21:20:39 +00:00
|
|
|
|