修复vsftpd错误

This commit is contained in:
monlor
2020-03-07 13:48:53 +08:00
parent f61eb3528d
commit 4c56e56e10
3 changed files with 20 additions and 15 deletions

View File

@@ -53,10 +53,10 @@ vsftpd() {
[ "$res" == '1' ] && vsftpdAdd
read -p "删除${appname}用户?[1/0] " res
[ "$res" == '1' ] && vsftpdDel
# if [ "$(mbdb get entware.main.enable)" = '1' ]; then
# readsh "使用entware安装插件程序[1/0]" "entware" "1"
# # [ "$entware" = '1' ] && mv ${mbroot}/apps/${appname}/bin/${appname} ${mbroot}/apps/${appname}/bin/${appname}.bak &> /dev/null
# fi
if [ "$(mbdb get entware.main.enable)" = '1' ]; then
readsh "使用entware安装插件程序[1/0]" "entware" "1"
# [ "$entware" = '1' ] && mv ${mbroot}/apps/${appname}/bin/${appname} ${mbroot}/apps/${appname}/bin/${appname}.bak &> /dev/null
fi
readsh "请输入${appname}外网访问配置[1/0]" "openport" "1"
${mbroot}/apps/${appname}/scripts/${appname}.sh restart

View File

@@ -5,4 +5,4 @@ supports="linux_arm,linux_mips,linux_x86_64"
backupfiles="config/ftpuser.conf"
appinfo="快速搭建Ftp服务器局域网文件共享"
newinfo="修复vsftpd脚本错误"
version="0.0.4"
version="0.0.5"