From 6a8bef83b31e07ed04f4ef12fae435ddd2abf9fa Mon Sep 17 00:00:00 2001 From: Promofaux Date: Fri, 30 Sep 2016 22:40:43 +0100 Subject: [PATCH] Fix the php version check command (Thanks @diginc!) --- 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 dc07ac47..46abeb62 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -62,7 +62,7 @@ if [ -x "$(command -v apt-get)" ];then #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 + ${SUDO} apt-get install --dry-run php5 > /dev/null 2>&1 if [ $? == 0 ]; then phpVer="php5" fi