|
|
@ -1400,6 +1400,9 @@ installConfigs() {
|
|
|
|
|
|
|
|
|
|
|
|
# If the user chose to install the dashboard,
|
|
|
|
# If the user chose to install the dashboard,
|
|
|
|
if [[ "${INSTALL_WEB_SERVER}" == true ]]; then
|
|
|
|
if [[ "${INSTALL_WEB_SERVER}" == true ]]; then
|
|
|
|
|
|
|
|
# set permissions on /etc/lighttpd/lighttpd.conf so pihole user (other) can read the file
|
|
|
|
|
|
|
|
chmod o+x /etc/lighttpd
|
|
|
|
|
|
|
|
chmod o+r "${lighttpdConfig}"
|
|
|
|
if grep -q -F "FILE AUTOMATICALLY OVERWRITTEN BY PI-HOLE" "${lighttpdConfig}"; then
|
|
|
|
if grep -q -F "FILE AUTOMATICALLY OVERWRITTEN BY PI-HOLE" "${lighttpdConfig}"; then
|
|
|
|
# Attempt to preserve backwards compatibility with older versions
|
|
|
|
# Attempt to preserve backwards compatibility with older versions
|
|
|
|
install -D -m 644 -T ${PI_HOLE_LOCAL_REPO}/advanced/${LIGHTTPD_CFG} "${lighttpdConfig}"
|
|
|
|
install -D -m 644 -T ${PI_HOLE_LOCAL_REPO}/advanced/${LIGHTTPD_CFG} "${lighttpdConfig}"
|
|
|
|