From daa5366b5757367086640a4c7afe36ae42831115 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Tue, 27 Sep 2016 11:11:47 +0100 Subject: [PATCH 1/2] Check if php5 is available in apt-cache, if so install it, else just install php --- automated install/basic-install.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 100522cc..1fdbe096 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -59,7 +59,14 @@ fi # Compatibility if [ -x "$(command -v apt-get)" ];then - # Debian Family + #Debian Family + #Decide if php should be `php5` or just `php` (Fixes issues with Ubuntu 16.04 LTS) + phpVer="php" + apt-cache show php5 &> /dev/null + if [ $? == 0 ]; then + phpVer="php5" + fi + ############################################# PKG_MANAGER="apt-get" PKG_CACHE="/var/cache/apt" UPDATE_PKG_CACHE="$PKG_MANAGER -qq update" @@ -67,7 +74,7 @@ if [ -x "$(command -v apt-get)" ];then PKG_INSTALL="$PKG_MANAGER --yes --quiet install" PKG_COUNT="$PKG_MANAGER -s -o Debug::NoLocking=true upgrade | grep -c ^Inst" INSTALLER_DEPS=( apt-utils whiptail dhcpcd5) - PIHOLE_DEPS=( dnsutils bc dnsmasq lighttpd php5-common php5-cgi php5 git curl unzip wget sudo netcat cron ) + PIHOLE_DEPS=( dnsutils bc dnsmasq lighttpd ${phpVer}-common ${phpVer}-cgi ${phpVer} git curl unzip wget sudo netcat cron ) LIGHTTPD_USER="www-data" LIGHTTPD_GROUP="www-data" LIGHTTPD_CFG="lighttpd.conf.debian" From 3fc3c5cae4a8e364fb09a7d8e97582518469dbfa Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Tue, 27 Sep 2016 11:15:46 +0100 Subject: [PATCH 2/2] Add iproute2 to fix #653 --- automated install/basic-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 1fdbe096..dc07ac47 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -74,7 +74,7 @@ if [ -x "$(command -v apt-get)" ];then PKG_INSTALL="$PKG_MANAGER --yes --quiet install" PKG_COUNT="$PKG_MANAGER -s -o Debug::NoLocking=true upgrade | grep -c ^Inst" INSTALLER_DEPS=( apt-utils whiptail dhcpcd5) - PIHOLE_DEPS=( dnsutils bc dnsmasq lighttpd ${phpVer}-common ${phpVer}-cgi ${phpVer} git curl unzip wget sudo netcat cron ) + PIHOLE_DEPS=( dnsutils bc dnsmasq lighttpd ${phpVer}-common ${phpVer}-cgi ${phpVer} git curl unzip wget sudo netcat cron iproute2 ) LIGHTTPD_USER="www-data" LIGHTTPD_GROUP="www-data" LIGHTTPD_CFG="lighttpd.conf.debian"