From f370563c8db26b477376d6a3edd4bbb3b74c24ea Mon Sep 17 00:00:00 2001 From: monlor Date: Sat, 7 Mar 2020 14:03:19 +0800 Subject: [PATCH] 2020-03-07 14:03:18 --- apps/vsftpd/config/vsftpd.uci | 4 ++-- apps/vsftpd/scripts/vsftpd.sh | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/apps/vsftpd/config/vsftpd.uci b/apps/vsftpd/config/vsftpd.uci index 142db7c..9e79013 100644 --- a/apps/vsftpd/config/vsftpd.uci +++ b/apps/vsftpd/config/vsftpd.uci @@ -4,5 +4,5 @@ needver="0.0.1" supports="linux_arm,linux_mips,linux_x86_64" backupfiles="config/ftpuser.conf" appinfo="快速搭建Ftp服务器,局域网文件共享" -newinfo="修复vsftpd脚本错误" -version="0.0.5" +newinfo="修复vsftpd状态显示bug" +version="0.0.6" diff --git a/apps/vsftpd/scripts/vsftpd.sh b/apps/vsftpd/scripts/vsftpd.sh index d66fa22..637e916 100644 --- a/apps/vsftpd/scripts/vsftpd.sh +++ b/apps/vsftpd/scripts/vsftpd.sh @@ -135,8 +135,7 @@ stop () { status() { - result=$(pssh | grep ${mbroot}/apps/${appname}/bin/${appname} | grep -v grep | wc -l) - if [ "$result" == '0' ]; then + if [ -n "$(pidof "${BINPATH}")" ]; then status="未运行|0" else status="运行端口号: ${port}|1"