From a43478d62738079ccd9cd5feae1f2cb7f0c297b8 Mon Sep 17 00:00:00 2001 From: Donald Cheng Hong Zou Date: Sun, 23 Jan 2022 19:19:38 -0500 Subject: [PATCH] Fixed no init_dashboard() for debug mode the first time --- src/dashboard.py | 1 + src/wgd.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/src/dashboard.py b/src/dashboard.py index 5fdcd20..5f8fa01 100644 --- a/src/dashboard.py +++ b/src/dashboard.py @@ -1705,6 +1705,7 @@ def get_host_bind(): if __name__ == "__main__": + init_dashboard() UPDATE = check_update() config = configparser.ConfigParser(strict=False) config.read('wg-dashboard.ini') diff --git a/src/wgd.sh b/src/wgd.sh index 26c1ba0..4424fba 100755 --- a/src/wgd.sh +++ b/src/wgd.sh @@ -33,6 +33,7 @@ help () { } _check_and_set_venv(){ + # This function will not be using in v3.0 # deb/ubuntu users: might need a 'apt install python3.8-venv' # set up the local environment APP_ROOT=`pwd`