mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-08 23:20:56 +00:00
more web checks
This commit is contained in:
parent
731d15f9b5
commit
01429d59bd
@ -980,16 +980,19 @@ installLogrotate() {
|
|||||||
installPihole() {
|
installPihole() {
|
||||||
# Install base files and web interface
|
# Install base files and web interface
|
||||||
create_pihole_user
|
create_pihole_user
|
||||||
if [ ! -d "/var/www/html" ]; then
|
|
||||||
mkdir -p /var/www/html
|
if [[ ${INSTALL_WEB} == true ]]; then
|
||||||
fi
|
if [ ! -d "/var/www/html" ]; then
|
||||||
chown ${LIGHTTPD_USER}:${LIGHTTPD_GROUP} /var/www/html
|
mkdir -p /var/www/html
|
||||||
chmod 775 /var/www/html
|
fi
|
||||||
usermod -a -G ${LIGHTTPD_GROUP} pihole
|
chown ${LIGHTTPD_USER}:${LIGHTTPD_GROUP} /var/www/html
|
||||||
if [ -x "$(command -v lighty-enable-mod)" ]; then
|
chmod 775 /var/www/html
|
||||||
lighty-enable-mod fastcgi fastcgi-php > /dev/null || true
|
usermod -a -G ${LIGHTTPD_GROUP} pihole
|
||||||
else
|
if [ -x "$(command -v lighty-enable-mod)" ]; then
|
||||||
printf "\n:::\tWarning: 'lighty-enable-mod' utility not found. Please ensure fastcgi is enabled if you experience issues.\n"
|
lighty-enable-mod fastcgi fastcgi-php > /dev/null || true
|
||||||
|
else
|
||||||
|
printf "\n:::\tWarning: 'lighty-enable-mod' utility not found. Please ensure fastcgi is enabled if you experience issues.\n"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
installScripts
|
installScripts
|
||||||
installConfigs
|
installConfigs
|
||||||
|
Loading…
Reference in New Issue
Block a user