mirror of
https://git.lolcat.ca/lolcat/4get.git
synced 2025-08-02 03:06:21 -04:00
update php and improve docker docs
This commit is contained in:
parent
55a093925f
commit
4afec792c4
3 changed files with 137 additions and 33 deletions
|
@ -1,14 +1,19 @@
|
|||
#!/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
|
||||
|
||||
# remove quotes from variable if present
|
||||
FOURGET_PROTO="${FOURGET_PROTO%\"}"
|
||||
FOURGET_PROTO="${FOURGET_PROTO#\"}"
|
||||
|
||||
if [ "$FOURGET_PROTO" = "https" ] || [ -f /etc/4get/certs/fullchain.pem ] || [ -f /etc/4get/certs/privkey.pem ]; then
|
||||
echo "Using https configuration"
|
||||
cp /etc/apache2/https.conf /etc/apache2/httpd.conf
|
||||
else
|
||||
echo "Using http configuration"
|
||||
cp /etc/apache2/http.conf /etc/apache2/httpd.conf
|
||||
fi
|
||||
|
||||
php82 ./docker/gen_config.php
|
||||
php ./docker/gen_config.php
|
||||
|
||||
|
||||
echo "4get is running"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue