Update install.sh

pull/621/head
Mr Chen 10 months ago
parent 0a322c9fed
commit 127535c7d4
  1. 10
      plugins/memcached/install.sh

@ -15,14 +15,14 @@ echo $sys_os
Install_mem(){
mkdir -p $serverPath/source
# mkdir -p $serverPath/memcached
mkdir -p $serverPath/memcached
echo '正在安装脚本文件...' > $install_tmp
if [ ! -f $serverPath/source/memcached.tar.gz ];then
wget --no-check-certificate -O $serverPath/source/memcached.tar.gz http://www.memcached.org/files/memcached-${VERSION}.tar.gz
wget --no-check-certificate -O $serverPath/source/memcached/memcached.tar.gz https://www.memcached.org/files/memcached-${VERSION}.tar.gz
fi
cd $serverPath/source && tar -zxvf memcached.tar.gz
cd $serverPath/source/memcached && tar -zxvf memcached.tar.gz
OPTIONS=''
if [ ${sys_os} == "Darwin" ]; then
@ -31,7 +31,7 @@ Install_mem(){
fi
echo "./configure --prefix=${serverPath}/memcached && make && make install"
cd $serverPath/source/memcached-${VERSION}
cd $serverPath/source/memcached/memcached-${VERSION}
./configure --prefix=$serverPath/memcached \
$OPTIONS
@ -44,7 +44,7 @@ Install_mem(){
cd ${rootPath} && python3 ${rootPath}/plugins/memcached/index.py start
cd ${rootPath} && python3 ${rootPath}/plugins/memcached/index.py initd_install
rm -rf $serverPath/source/memcached-${VERSION}
rm -rf $serverPath/source/memcached/memcached-${VERSION}
fi
}

Loading…
Cancel
Save