1
0
mirror of https://github.com/donaldzou/WGDashboard.git synced 2024-06-28 13:44:35 +02:00

Fixed no init_dashboard() for debug mode the first time

This commit is contained in:
Donald Cheng Hong Zou 2022-01-23 19:19:38 -05:00
parent ed2c3f43c7
commit a43478d627
2 changed files with 2 additions and 0 deletions

View File

@ -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')

View File

@ -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`