From 61a9e0a87425f2c6dd84418b5ec7a146a2e8e33a Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 17 Feb 2019 11:06:45 -0700 Subject: [PATCH] Update ioncube.sh --- debian/resources/ioncube.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/debian/resources/ioncube.sh b/debian/resources/ioncube.sh index 6e35de9..81aa071 100755 --- a/debian/resources/ioncube.sh +++ b/debian/resources/ioncube.sh @@ -16,14 +16,16 @@ 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 +if [ .$cpu_architecture = .'x86' ]; then + #get the ioncube 64 bit loader + wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.zip -#uncompress the file -unzip ioncube_loaders_lin_x86-64.zip + #uncompress the file + unzip ioncube_loaders_lin_x86-64.zip -#remove the zip file -rm ioncube_loaders_lin_x86-64.zip + #remove the zip file + rm ioncube_loaders_lin_x86-64.zip +fi #copy the loader to the correct directory if [ ."$php_version" = ."5.6" ]; then