Update yaf.sh

This commit is contained in:
Mr Chen 2019-02-15 12:59:06 +08:00
parent cbf76cddbd
commit 8efc7d040a
1 changed files with 3 additions and 1 deletions

View File

@ -48,7 +48,7 @@ Install_lib()
return;
fi
echo "extension=yaf.so" >> $serverPath/php/$version/etc/php.ini
echo -e "[yaf]\nextension=yaf.so\nyaf.use_namespace=1" >> $serverPath/php/$version/etc/php.ini
$serverPath/php/init.d/php$version reload
echo '==========================================================='
@ -71,6 +71,8 @@ Uninstall_lib()
echo $serverPath/php/$version/etc/php.ini
sed -i '_bak' '/yaf.so/d' $serverPath/php/$version/etc/php.ini
sed -i '_bak' '/yaf.use_namespace/d' $serverPath/php/$version/etc/php.ini
sed -i '_bak' '/\[yaf\]/d' $serverPath/php/$version/etc/php.ini
rm -f $extFile
$serverPath/php/init.d/php$version reload