From 0cf3f4db7cef7ef3d6f8ee2791e80a8e3d9b69c9 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Mon, 19 Jun 2017 15:25:54 +0300 Subject: [PATCH] ioncube trigger --- src/rpm/conf/ioncube.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 src/rpm/conf/ioncube.sh diff --git a/src/rpm/conf/ioncube.sh b/src/rpm/conf/ioncube.sh new file mode 100755 index 00000000..15115319 --- /dev/null +++ b/src/rpm/conf/ioncube.sh @@ -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