mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
ioncube trigger
This commit is contained in:
parent
e6469d98c3
commit
0cf3f4db7c
1 changed files with 14 additions and 0 deletions
14
src/rpm/conf/ioncube.sh
Executable file
14
src/rpm/conf/ioncube.sh
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue