From cc47bf8f6cb9b23a01b62359d78fd796b122705d Mon Sep 17 00:00:00 2001 From: bcambl Date: Sun, 7 Jan 2018 22:21:04 -0600 Subject: [PATCH] Fix epel-release install for CentOS Signed-off-by: bcambl --- automated install/basic-install.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index d22775c4..7ab01ea3 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -210,7 +210,8 @@ elif command -v rpm &> /dev/null; then INSTALLER_DEPS=(dialog git iproute net-tools newt procps-ng) PIHOLE_DEPS=(bc bind-utils cronie curl dnsmasq findutils nmap-ncat sudo unzip wget libidn2 psmisc) PIHOLE_WEB_DEPS=(lighttpd lighttpd-fastcgi php php-common php-cli php-pdo) - if ! grep -q 'Fedora' /etc/redhat-release; then + # EPEL (https://fedoraproject.org/wiki/EPEL) is required for lighttpd on CentOS + if grep -qi 'centos' /etc/redhat-release; then INSTALLER_DEPS=("${INSTALLER_DEPS[@]}" "epel-release"); fi LIGHTTPD_USER="lighttpd"