pull/109/head
midoks 4 years ago
parent 99a5c15853
commit 1418662e38
  1. 2
      class/core/mw.py
  2. 2
      scripts/init.d/mw.tpl

@ -113,7 +113,7 @@ def isInstalledWeb():
def restartWeb(): def restartWeb():
if isInstalledWeb(): if isInstalledWeb():
initd = getServerDir() + '/openresty/init.d/openresty' initd = getServerDir() + '/openresty/init.d/openresty'
execShell(initd + ' ' + 'reload') execShell(initd + ' ' + 'restart')
def restartMw(): def restartMw():

@ -20,6 +20,8 @@ PATH=$PATH:$mw_path/bin
if [ -f $mw_path/bin/activate ];then if [ -f $mw_path/bin/activate ];then
source $mw_path/bin/activate source $mw_path/bin/activate
else
echo ""
fi fi

Loading…
Cancel
Save