1
0
mirror of https://github.com/pi-hole/pi-hole synced 2024-12-22 06:48:07 +00:00

Adds chmod 644 for /var/www and /var/www/html

Signed-off-by: pvogt09 <50047961+pvogt09@users.noreply.github.com>
This commit is contained in:
pvogt09 2019-05-05 09:20:49 +02:00
parent 69c06ba6fe
commit a25f331e83

View File

@ -867,6 +867,8 @@ setIFCFG() {
echo "DNS2=$PIHOLE_DNS_2"
echo "USERCTL=no"
}> "${IFCFG_FILE}"
chmod 644 "${IFCFG_FILE}"
chown root:root "${IFCFG_FILE}"
# Use ip to immediately set the new address
ip addr replace dev "${PIHOLE_INTERFACE}" "${IPV4_ADDRESS}"
# If NetworkMangler command line interface exists and ready to mangle,
@ -1896,6 +1898,8 @@ installPihole() {
# make the Web directory if necessary
install -d -m 0755 ${webroot}
fi
chmod a+rx /var/www
chmod a+rx /var/www/html
if [[ "${INSTALL_WEB_SERVER}" == true ]]; then
# Set the owner and permissions