Skip to content

Commit 50be364

Browse files
authored
Always set lighttpd config dir permissions (pi-hole#5038)
2 parents 5f9523a + b9ebb05 commit 50be364

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

automated install/basic-install.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1400,6 +1400,9 @@ installConfigs() {
14001400

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

0 commit comments

Comments
 (0)