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
1 changed files with 4 additions and 0 deletions

View File

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