From c74af2c21f46176f2796f59aca50ca61e3a97522 Mon Sep 17 00:00:00 2001 From: bcambl Date: Wed, 4 May 2016 02:03:07 -0400 Subject: [PATCH] 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. --- automated install/basic-install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 21e03321..f128e470 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -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 - $SUDO lighty-enable-mod fastcgi fastcgi-php > /dev/null + 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