csvn update

This commit is contained in:
Mr Chen 2018-12-05 10:36:41 +08:00
parent c804b834b8
commit b17b59b0f1
2 changed files with 8 additions and 7 deletions

View File

@ -4,8 +4,8 @@
"shell": "install.sh",
"name": "csvn",
"title": "CSVN",
"versions": ["5.1"],
"updates":["5.1.4"],
"versions": "5.1",
"updates":"5.1.4",
"tip": "soft",
"checks": "server/csvn",
"author": "midoks",

View File

@ -14,16 +14,17 @@ CSVN_SOURCE='https://github.com/midoks/mdserver-web/releases/download/init/Colla
Install_csvn()
{
mkdir -p $serverPath/tmp
mkdir -p $serverPath/source
echo '正在安装脚本文件...' > $install_tmp
if [ ! -f $serverPath/tmp/csvn.tar.xz ];then
wget -O $serverPath/so/csvn.tar.xz ${CSVN_SOURCE}
if [ ! -f $serverPath/source/csvn.tar.xz ];then
wget -O $serverPath/source/csvn.tar.xz ${CSVN_SOURCE}
fi
cd $serverPath/tmp && tar -Jxf $serverPath/tmp/csvn.tar.xz
mv $serverPath/tmp/csvn $serverPath/csvn
cd $serverPath/source && tar -Jxf $serverPath/source/csvn.tar.xz
mv $serverPath/source/csvn $serverPath/csvn
echo '5.1' > $serverPath/csvn/version.pl
echo '安装完成' > $install_tmp
}