Skip to content

Commit 0cf3f4d

Browse files
author
Serghey Rodin
committed
ioncube trigger
1 parent e6469d9 commit 0cf3f4d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/rpm/conf/ioncube.sh

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#!/bin/bash
2+
3+
VESTA='/usr/local/vesta'
4+
ioncube_loader="ioncube_loader_lin_5.6.so"
5+
php_ini='/usr/local/vesta/php/lib/php.ini'
6+
7+
# Check if extention is enabled
8+
if [ -z "$(grep $ioncube_loader $php_ini | grep -v ';')" ]; then
9+
echo "zend_extension = \"$VESTA/ioncube/$ioncube_loader\"" >> $php
10+
/etc/init.d/vesta restart
11+
exit
12+
fi
13+
14+
exit

0 commit comments

Comments
 (0)