From 1418662e381f920d8799d780a05770275063d1d0 Mon Sep 17 00:00:00 2001 From: midoks Date: Thu, 11 Nov 2021 17:12:11 +0800 Subject: [PATCH] up --- class/core/mw.py | 2 +- scripts/init.d/mw.tpl | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/class/core/mw.py b/class/core/mw.py index ddc2abcd9..156f56227 100755 --- a/class/core/mw.py +++ b/class/core/mw.py @@ -113,7 +113,7 @@ def isInstalledWeb(): def restartWeb(): if isInstalledWeb(): initd = getServerDir() + '/openresty/init.d/openresty' - execShell(initd + ' ' + 'reload') + execShell(initd + ' ' + 'restart') def restartMw(): diff --git a/scripts/init.d/mw.tpl b/scripts/init.d/mw.tpl index 071b890d2..03053418f 100755 --- a/scripts/init.d/mw.tpl +++ b/scripts/init.d/mw.tpl @@ -20,6 +20,8 @@ PATH=$PATH:$mw_path/bin if [ -f $mw_path/bin/activate ];then source $mw_path/bin/activate +else + echo "" fi