Skip to content

Commit

Permalink
Merge pull request #1287 from pi-hole/dev
Browse files Browse the repository at this point in the history
Dev-> master
  • Loading branch information
PromoFaux authored Jan 18, 2023
2 parents 6b13b9b + 312419b commit 3be4ac6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/s6/debian-root/usr/local/bin/bash_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -349,10 +349,10 @@ setup_lighttpd_bind() {

setup_web_php_env() {
local config_file
config_file="/etc/lighttpd/conf-enabled/15-pihole-admin.conf"
# if the environment variable VIRTUAL_HOST is not set, or is empty, then set it to the IP address of the container
config_file="/etc/lighttpd/conf-available/15-pihole-admin.conf"
# if the environment variable VIRTUAL_HOST is not set, or is empty, then set it to the hostname of the container
if [ -z "${VIRTUAL_HOST}" ] || [ "${VIRTUAL_HOST}" == "" ]; then
VIRTUAL_HOST="${FTLCONF_LOCAL_IPV4}"
VIRTUAL_HOST="${HOSTNAME}"
fi

for config_var in "VIRTUAL_HOST" "CORS_HOSTS" "PHP_ERROR_LOG" "PIHOLE_DOCKER_TAG" "TZ"; do
Expand Down

0 comments on commit 3be4ac6

Please sign in to comment.