From a80b9ce9f111dccc370a6ac95aea09bc89c9e771 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 17 Feb 2019 11:04:43 -0700 Subject: [PATCH] Update ioncube.sh --- debian/resources/ioncube.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/debian/resources/ioncube.sh b/debian/resources/ioncube.sh index dbd3b5e..6e35de9 100755 --- a/debian/resources/ioncube.sh +++ b/debian/resources/ioncube.sh @@ -9,7 +9,12 @@ cd "$(dirname "$0")" . ./environment.sh #make sure unzip is install -apt-get install unzip +apt-get install -y unzip + +#remove the ioncube directory if it exists +if [ -d "ioncube" ]; then + rm -Rf ioncube; +fi #get the ioncube 64 bit loader wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.zip @@ -20,11 +25,6 @@ unzip ioncube_loaders_lin_x86-64.zip #remove the zip file rm ioncube_loaders_lin_x86-64.zip -#remove the ioncube directory if it exists -if [ -d "$(dirname "$0")/ioncube" ]; then - rm -Rf $(dirname "$0")/ioncube -fi - #copy the loader to the correct directory if [ ."$php_version" = ."5.6" ]; then #copy the php extension .so into the php lib directory