blob: 0a41ddd0c6eb0f2e721a91f297876a428da2b04d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/sh
set -e
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
fi
php82 ./docker/gen_config.php
echo "4get is running"
exec httpd -DFOREGROUND
|