ioncube trigger

This commit is contained in:
Serghey Rodin 2017-06-19 15:25:54 +03:00
commit 0cf3f4db7c

14
src/rpm/conf/ioncube.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/bash
VESTA='/usr/local/vesta'
ioncube_loader="ioncube_loader_lin_5.6.so"
php_ini='/usr/local/vesta/php/lib/php.ini'
# Check if extention is enabled
if [ -z "$(grep $ioncube_loader $php_ini | grep -v ';')" ]; then
echo "zend_extension = \"$VESTA/ioncube/$ioncube_loader\"" >> $php
/etc/init.d/vesta restart
exit
fi
exit