pass array as comma separated env

This commit is contained in:
throwaway 2024-04-19 13:47:02 -07:00
parent 4afec792c4
commit e31b9494af
3 changed files with 33 additions and 17 deletions

View file

@ -5,6 +5,10 @@ set -e
FOURGET_PROTO="${FOURGET_PROTO%\"}"
FOURGET_PROTO="${FOURGET_PROTO#\"}"
# make lowercase
FOURGET_PROTO=`echo $FOURGET_PROTO | awk '{print tolower($0)}'`
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