From 47009b42af58e4afc8eafbbf6380938132584924 Mon Sep 17 00:00:00 2001 From: midoks Date: Mon, 14 Nov 2022 19:56:31 +0800 Subject: [PATCH] Update mw.tpl --- scripts/init.d/mw.tpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/init.d/mw.tpl b/scripts/init.d/mw.tpl index 06c4a7ac5..9209951a8 100755 --- a/scripts/init.d/mw.tpl +++ b/scripts/init.d/mw.tpl @@ -225,7 +225,9 @@ mw_debug(){ port=$(cat $mw_path/data/port.pl) fi - cd /www/server/mdserver-web + if [ -d /www/server/mdserver-web ];then + cd /www/server/mdserver-web + fi gunicorn -b :$port -k geventwebsocket.gunicorn.workers.GeventWebSocketWorker -w 1 app:app }