From ea45316a320c1e261e5f4c49b8b765a63724580a Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 11 Sep 2026 20:32:22 +0800 Subject: [PATCH] update --- plugins/acme_pandominassl_apply/install.sh | 2 +- plugins/alist/install.sh | 10 +++++----- plugins/apache/check.sh | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/plugins/acme_pandominassl_apply/install.sh b/plugins/acme_pandominassl_apply/install.sh index 5d43fff8f..0f71bd6bc 100755 --- a/plugins/acme_pandominassl_apply/install.sh +++ b/plugins/acme_pandominassl_apply/install.sh @@ -47,7 +47,7 @@ Uninstall_App() } action=$1 -if [ "${1}" == 'install' ];then +if [ "${1}" = 'install' ];then Install_App else Uninstall_App diff --git a/plugins/alist/install.sh b/plugins/alist/install.sh index 64aabc565..a1b686e69 100755 --- a/plugins/alist/install.sh +++ b/plugins/alist/install.sh @@ -16,16 +16,16 @@ sysArch=`arch` sysName=`uname` ALIST_ARCH_NAME=amd64 -if [ "$sysArch" == "arm64" ];then +if [ "$sysArch" = "arm64" ];then ALIST_ARCH_NAME=arm64 -elif [ "$sysArch" == "x86_64" ]; then +elif [ "$sysArch" = "x86_64" ]; then ALIST_ARCH_NAME=amd64 -elif [ "$sysArch" == "aarch64" ]; then +elif [ "$sysArch" = "aarch64" ]; then ALIST_ARCH_NAME=arm64 fi ALIST_NAME=linux -if [ "$sysName" == "Darwin" ];then +if [ "$sysName" = "Darwin" ];then ALIST_NAME=darwin fi @@ -86,7 +86,7 @@ Uninstall_App() } action=$1 -if [ "${1}" == 'install' ];then +if [ "${1}" = 'install' ];then Install_App else Uninstall_App diff --git a/plugins/apache/check.sh b/plugins/apache/check.sh index e6b36e6de..e6d98b014 100755 --- a/plugins/apache/check.sh +++ b/plugins/apache/check.sh @@ -27,7 +27,7 @@ else fi NGINX_IDS=`ps -ef|grep nginx | grep -v grep| awk '{print $2}'` -if [ "$NGINX_IDS" == "" ];then +if [ "$NGINX_IDS" = "" ];then ps -ef|grep nginx| grep -v grep| awk '{print $2}' | xargs kill -9 systemctl start "$service_name" echo "OpenResty未运行,正在启动服务..."