Simple Linux Panel
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mdserver-web/plugins/php-yum/versions/common/opcache.sh

29 lines
698 B

11 months ago
#!/bin/bash
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
curPath=`pwd`
rootPath=$(dirname "$curPath")
rootPath=$(dirname "$rootPath")
rootPath=$(dirname "$rootPath")
rootPath=$(dirname "$rootPath")
serverPath=$(dirname "$rootPath")
sourcePath=${serverPath}/source/php
actionType=$1
version=$2
sysName=`uname`
LIBNAME=opcache
cfgDir=/etc/opt/remi
if [ "$actionType" == 'install' ];then
apt install -y php${version}-${LIBNAME}
echo "ls ${cfgDir}/php${version}/php.d | grep "${LIBNAME}""
find_opcache=`ls ${cfgDir}/php${version}/php.d | grep "${LIBNAME}"`
echo $find_opcache
elif [ "$actionType" == 'uninstall' ];then
echo 'cannot uninstall'
exit 1
fi