Update ioncube.sh

This commit is contained in:
FusionPBX 2018-02-28 02:33:01 -07:00 committed by GitHub
parent 3a6d647e33
commit e085f99004
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -20,6 +20,11 @@ unzip ioncube_loaders_lin_x86-64.zip
#remove the zip file
rm ioncube_loaders_lin_x86-64.zip
#change the version of php for debian stretch
if [ ."$os_codename" = ."stretch" ]; then
php_version=7
fi
#copy the loader to the correct directory
if [ ."$php_version" = ."5" ]; then
#copy the php extension .so into the php lib directory