回复到原来

pull/109/head
midoks 3 years ago
parent 8b2c1e9f88
commit 2502ad6168
  1. 2
      plugins/pureftp/info.json
  2. 14
      plugins/pureftp/install.sh

@ -3,7 +3,7 @@
"tip":"soft",
"name":"pureftp",
"ps":"一款免费FTP服务器软件",
"versions": "1.0.51",
"versions": "1.0.49",
"shell":"install.sh",
"checks":"server/pureftp",
"path":"server/pureftp",

@ -33,11 +33,15 @@ Install_pureftp()
mkdir -p ${serverPath}/pureftp
mkdir -p ${serverPath}/source/pureftp
# https://github.com/jedisct1/pure-ftpd/releases/download/1.0.49/pure-ftpd-1.0.49.tar.gz
# https://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.0.49.tar.gz
# DOWNLOAD=https://github.com/jedisct1/pure-ftpd/releases/download/${VER}/pure-ftpd-${VER}.tar.gz
VER=$1
FILE=pure-ftpd-${VER}.tar.gz
FDIR=pure-ftpd-${VER}
DOWNLOAD=https://download.pureftpd.org/pub/pure-ftpd/releases/$FILE
if [ ! -f $serverPath/source/pureftp/$FILE ];then
wget -O $serverPath/source/pureftp/$FILE $DOWNLOAD
@ -50,8 +54,12 @@ Install_pureftp()
cd $serverPath/source/pureftp/$FDIR && ./configure --prefix=${serverPath}/pureftp \
   --with-everything && make && make install && make clean
echo "${1}" > ${serverPath}/pureftp/version.pl
echo '安装完成' > $install_tmp
if [ -d ${serverPath}/pureftp ];then
echo "${1}" > ${serverPath}/pureftp/version.pl
echo '安装完成' > $install_tmp
else
echo '安装失败' > $install_tmp
fi
}
Uninstall_pureftp()

Loading…
Cancel
Save