Update ioncube.sh

This commit is contained in:
FusionPBX 2019-02-17 10:51:10 -07:00 committed by GitHub
parent 04c0ab1b04
commit 6abd0efadf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -21,8 +21,8 @@ unzip ioncube_loaders_lin_x86-64.zip
rm ioncube_loaders_lin_x86-64.zip
#remove the ioncube directory if it exists
if [ -d "ioncube" ]; then
rm -Rf ioncube
if [ -d "$(dirname "$0")/ioncube" ]; then
rm -Rf $(dirname "$0")/ioncube
fi
#copy the loader to the correct directory