From 04c0ab1b0470d8bb4fe2a659caa8d22d8f46b1a1 Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Sun, 17 Feb 2019 10:49:50 -0700 Subject: [PATCH] Update ioncube.sh --- debian/resources/ioncube.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/debian/resources/ioncube.sh b/debian/resources/ioncube.sh index ea07e92..849f2dd 100755 --- a/debian/resources/ioncube.sh +++ b/debian/resources/ioncube.sh @@ -20,6 +20,11 @@ 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 "ioncube" ]; then + rm -Rf 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