From bb8591f5e552b71f93a5c79be4e27462fe2edaf8 Mon Sep 17 00:00:00 2001 From: dami Date: Fri, 11 Sep 2026 20:06:25 +0800 Subject: [PATCH] update --- plugins/acme_pandominassl_apply/index.py | 2 +- web/utils/crontab.py | 2 +- web/utils/system/update.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/acme_pandominassl_apply/index.py b/plugins/acme_pandominassl_apply/index.py index 72056fae4..88c5d0580 100755 --- a/plugins/acme_pandominassl_apply/index.py +++ b/plugins/acme_pandominassl_apply/index.py @@ -606,7 +606,7 @@ def runHookDstDomain(row): if mw.isAppleSystem(): user = getRunUser() - cmd += "source /Users/"+user+"/.zshrc\n" + cmd += ". /Users/"+user+"/.zshrc\n" cmd_data = getDnsapiData(row['dnsapi_id']) # print(cmd_data) diff --git a/web/utils/crontab.py b/web/utils/crontab.py index fb02ad805..a29c6255e 100644 --- a/web/utils/crontab.py +++ b/web/utils/crontab.py @@ -448,7 +448,7 @@ START_MW_SHELL_TIME=`date +%s` export LANG=en_US.UTF-8 MW_PATH=%s/bin/activate if [ -f $MW_PATH ];then - source $MW_PATH + . $MW_PATH fi''' % (mw.getPanelDir(),) head = head + start_head + source_bin_activate + "\n" diff --git a/web/utils/system/update.py b/web/utils/system/update.py index 54a78c35f..5f61e70b2 100644 --- a/web/utils/system/update.py +++ b/web/utils/system/update.py @@ -115,9 +115,9 @@ P_VER=`python3 -V | awk '{print $2}'` if [ ! -f /www/server/mdserver-web/bin/activate ];then cd /www/server/mdserver-web && python3 -m venv . -cd /www/server/mdserver-web && source /www/server/mdserver-web/bin/activate +cd /www/server/mdserver-web && . /www/server/mdserver-web/bin/activate else -cd /www/server/mdserver-web && source /www/server/mdserver-web/bin/activate +cd /www/server/mdserver-web && . /www/server/mdserver-web/bin/activate fi cn=$(curl -fsSL -m 10 http://ipinfo.io/json | grep "\"country\": \"CN\"")