Skip to content

Commit 597e5cb

Browse files
author
Serghey Rodin
committed
changed var names
1 parent 1c928db commit 597e5cb

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/rpm/conf/ioncube.sh

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
#!/bin/bash
22

33
VESTA='/usr/local/vesta'
4-
ioncube_loader="ioncube_loader_lin_5.6.so"
5-
php_ini='/usr/local/vesta/php/lib/php.ini'
4+
ioncube="ioncube_loader_lin_5.6.so"
5+
php='/usr/local/vesta/php/lib/php.ini'
66

77
# 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
8+
if [ -z "$(grep $ioncube $php |grep -v ';')" ]; then
9+
echo "zend_extension = '$VESTA/ioncube/$ioncube'" >> $php
1010
/etc/init.d/vesta restart
11-
exit
1211
fi
1312

1413
exit

0 commit comments

Comments
 (0)