warn if lighty-enable-mod utility is not available

Fastcgi can be enabled via lighttpd configuration.
This step may not be required for all distributions.
This commit is contained in:
bcambl 2016-05-04 02:03:07 -04:00
parent c160b2e54b
commit c74af2c21f

View file

@ -751,7 +751,11 @@ installPihole() {
$SUDO chown $LIGHTTPD_USER:$LIGHTTPD_GROUP /var/www/html
$SUDO chmod 775 /var/www/html
$SUDO usermod -a -G $LIGHTTPD_GROUP pihole
if [ -x "$(command -v lighty-enable-mod)" ]; then
$SUDO lighty-enable-mod fastcgi fastcgi-php > /dev/null
else
printf "\n:::\tWarning: 'lighty-enable-mod' utility not found. Please ensure fastcgi is enabled if you experience issues.\n"
fi
getGitFiles
installScripts