Update ioncube.sh
This commit is contained in:
parent
6abd0efadf
commit
a80b9ce9f1
|
|
@ -9,7 +9,12 @@ cd "$(dirname "$0")"
|
||||||
. ./environment.sh
|
. ./environment.sh
|
||||||
|
|
||||||
#make sure unzip is install
|
#make sure unzip is install
|
||||||
apt-get install unzip
|
apt-get install -y unzip
|
||||||
|
|
||||||
|
#remove the ioncube directory if it exists
|
||||||
|
if [ -d "ioncube" ]; then
|
||||||
|
rm -Rf ioncube;
|
||||||
|
fi
|
||||||
|
|
||||||
#get the ioncube 64 bit loader
|
#get the ioncube 64 bit loader
|
||||||
wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.zip
|
wget https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.zip
|
||||||
|
|
@ -20,11 +25,6 @@ unzip ioncube_loaders_lin_x86-64.zip
|
||||||
#remove the zip file
|
#remove the zip file
|
||||||
rm ioncube_loaders_lin_x86-64.zip
|
rm ioncube_loaders_lin_x86-64.zip
|
||||||
|
|
||||||
#remove the ioncube directory if it exists
|
|
||||||
if [ -d "$(dirname "$0")/ioncube" ]; then
|
|
||||||
rm -Rf $(dirname "$0")/ioncube
|
|
||||||
fi
|
|
||||||
|
|
||||||
#copy the loader to the correct directory
|
#copy the loader to the correct directory
|
||||||
if [ ."$php_version" = ."5.6" ]; 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
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue