Update install.sh

pull/632/head
Mr Chen 6 months ago
parent d5678d3f34
commit 8e0a4ec34b
  1. 8
      plugins/pureftp/install.sh

@ -7,8 +7,6 @@ rootPath=$(dirname "$curPath")
rootPath=$(dirname "$rootPath") rootPath=$(dirname "$rootPath")
serverPath=$(dirname "$rootPath") serverPath=$(dirname "$rootPath")
install_tmp=${rootPath}/tmp/mw_install.pl
if [ -f ${rootPath}/bin/activate ];then if [ -f ${rootPath}/bin/activate ];then
source ${rootPath}/bin/activate source ${rootPath}/bin/activate
@ -103,12 +101,12 @@ Install_pureftp()
if [ -d ${serverPath}/pureftp ];then if [ -d ${serverPath}/pureftp ];then
echo "${1}" > ${serverPath}/pureftp/version.pl echo "${1}" > ${serverPath}/pureftp/version.pl
echo '安装完成' > $install_tmp echo '安装完成'
cd ${rootPath} && python3 ${rootPath}/plugins/pureftp/index.py start cd ${rootPath} && python3 ${rootPath}/plugins/pureftp/index.py start
cd ${rootPath} && python3 ${rootPath}/plugins/pureftp/index.py initd_install cd ${rootPath} && python3 ${rootPath}/plugins/pureftp/index.py initd_install
else else
echo '安装失败' > $install_tmp echo '安装失败'
fi fi
} }
@ -128,7 +126,7 @@ Uninstall_pureftp()
rm -rf ${serverPath}/pureftp rm -rf ${serverPath}/pureftp
userdel ftp userdel ftp
groupdel ftp groupdel ftp
echo '卸载完成' > $install_tmp echo '卸载完成'
} }
action=$1 action=$1

Loading…
Cancel
Save