Update ioncube.sh

This commit is contained in:
FusionPBX 2018-10-09 20:38:04 -06:00 committed by GitHub
parent 38df1e5b5b
commit 9d448ecabc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -22,11 +22,11 @@ rm ioncube_loaders_lin_x86-64.zip
#change the version of php for debian stretch #change the version of php for debian stretch
if [ ."$os_codename" = ."stretch" ]; then if [ ."$os_codename" = ."stretch" ]; then
php_version=7 php_version=7.0
fi fi
#copy the loader to the correct directory #copy the loader to the correct directory
if [ ."$php_version" = ."5" ]; then if [ ."$php_version" = ."5.6" ]; then
#copy the php extension .so into the php lib directory #copy the php extension .so into the php lib directory
cp ioncube/ioncube_loader_lin_5.6.so /usr/lib/php5/20131226 cp ioncube/ioncube_loader_lin_5.6.so /usr/lib/php5/20131226
@ -36,7 +36,7 @@ if [ ."$php_version" = ."5" ]; then
#restart the service #restart the service
service php5-fpm restart service php5-fpm restart
fi fi
if [ ."$php_version" = ."7" ]; then if [ ."$php_version" = ."7.1" ]; then
#copy the php extension .so into the php lib directory #copy the php extension .so into the php lib directory
cp ioncube/ioncube_loader_lin_7.1.so /usr/lib/php/20160303 cp ioncube/ioncube_loader_lin_7.1.so /usr/lib/php/20160303