# Repair permissions if WEB_ROOT is not world readable
chmod a+rx /var/www
chmod a+rx ${webroot}
chmod a+rx ${WEB_ROOT}
# Give lighttpd access to the pihole group so the web interface can
# manage the gravity.db database
usermod -a -G pihole ${LIGHTTPD_USER}
@ -2027,7 +2051,7 @@ displayFinalMessage() {
# If the user wants to install the dashboard,
if[["${INSTALL_WEB_INTERFACE}"==true]];then
# Store a message in a variable and display it
additional="View the web interface at http://pi.hole/admin or http://${IPV4_ADDRESS%/*}/admin\\n\\nYour Admin Webpage login password is ${pwstring}"
additional="View the web interface at http://pi.hole/${ADMIN_INTERFACE_SUBDIR} or http://${IPV4_ADDRESS%/*}/${ADMIN_INTERFACE_SUBDIR}\\n\\nYour Admin Webpage login password is ${pwstring}"
fi
# Final completion message to user
@ -2180,8 +2204,8 @@ clone_or_update_repos() {
# If the Web interface was installed,
if[["${INSTALL_WEB_INTERFACE}"==true]];then
# reset it's repo
resetRepo ${webInterfaceDir}||\
{printf" %b Unable to reset %s, exiting installer%b\\n""${COL_LIGHT_RED}""${webInterfaceDir}""${COL_NC}";\
{printf" %b Unable to clone %s into ${WEB_ROOT}/${ADMIN_INTERFACE_SUBDIR}, exiting installer%b\\n""${COL_LIGHT_RED}""${webInterfaceGitUrl}""${COL_NC}";\
exit 1;\
}
fi
@ -2760,7 +2784,7 @@ main() {
if[["${useUpdateVars}"==false]];then
# If the Web interface was installed,
if[["${INSTALL_WEB_INTERFACE}"==true]];then
printf" %b View the web interface at http://pi.hole/admin or http://%s/admin\\n\\n" "${INFO}""${IPV4_ADDRESS%/*}"
printf" %b View the web interface at http://pi.hole/${ADMIN_INTERFACE_SUBDIR} or http://%s/${ADMIN_INTERFACE_SUBDIR}\\n\\n" "${INFO}""${IPV4_ADDRESS%/*}"
fi
# Explain to the user how to use Pi-hole as their DNS server
printf" %b You may now configure your devices to use the Pi-hole as their DNS server\\n""${INFO}"