|
|
@ -1898,13 +1898,14 @@ 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
|
|
|
|
chown ${LIGHTTPD_USER}:${LIGHTTPD_GROUP} ${webroot}
|
|
|
|
chown ${LIGHTTPD_USER}:${LIGHTTPD_GROUP} ${webroot}
|
|
|
|
chmod 0775 ${webroot}
|
|
|
|
chmod 0775 ${webroot}
|
|
|
|
|
|
|
|
# Repair permissions if /var/www/html is not world readable
|
|
|
|
|
|
|
|
chmod a+rx /var/www
|
|
|
|
|
|
|
|
chmod a+rx /var/www/html
|
|
|
|
# Give pihole access to the Web server group
|
|
|
|
# Give pihole access to the Web server group
|
|
|
|
usermod -a -G ${LIGHTTPD_GROUP} pihole
|
|
|
|
usermod -a -G ${LIGHTTPD_GROUP} pihole
|
|
|
|
# If the lighttpd command is executable,
|
|
|
|
# If the lighttpd command is executable,
|
|
|
|