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"