From 1d2c468d037e2fe63aac19598312058c79d5bd3d Mon Sep 17 00:00:00 2001 From: Galonza Peter Date: Sun, 24 Oct 2021 01:51:04 +0300 Subject: [PATCH] fixed, when database does not create, if no directory --- src/dashboard.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/dashboard.py b/src/dashboard.py index b1c6819..c4d1cee 100644 --- a/src/dashboard.py +++ b/src/dashboard.py @@ -28,6 +28,7 @@ dashboard_version = 'v2.3.1' # Dashboard Config Name configuration_path = os.getenv('CONFIGURATION_PATH', '.') db_path = os.path.join(configuration_path, 'db') +os.mkdir(db_path) dashboard_conf = os.path.join(configuration_path, 'wg-dashboard.ini') sys.exit() # Upgrade Required