From 7700eb92ec5bc4fafee37edd708515e3bcc72e23 Mon Sep 17 00:00:00 2001 From: midoks Date: Tue, 10 Oct 2023 23:21:09 +0800 Subject: [PATCH] Update mw.tpl --- scripts/init.d/mw.tpl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/init.d/mw.tpl b/scripts/init.d/mw.tpl index 482c88030..9773d60f9 100755 --- a/scripts/init.d/mw.tpl +++ b/scripts/init.d/mw.tpl @@ -389,6 +389,10 @@ mw_connect_mysql(){ } +mw_venv(){ + cd /www/server/mdserver-web && source bin/activate +} + case "$1" in 'start') mw_start;; 'stop') mw_stop;; @@ -414,6 +418,7 @@ case "$1" in 'debug') mw_debug;; 'mirror') mw_mirror;; 'db') mw_connect_mysql;; + 'venv') mw_venv; 'default') cd $mw_path port=7200