From 7ad65956c9f018c373452721d2ed2000caca2f16 Mon Sep 17 00:00:00 2001 From: Galonza Peter Date: Sun, 24 Oct 2021 12:45:08 +0300 Subject: [PATCH] fixed, if dir is exists --- src/dashboard.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dashboard.py b/src/dashboard.py index 22d5152..c9a2c47 100644 --- a/src/dashboard.py +++ b/src/dashboard.py @@ -27,7 +27,8 @@ 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) +if not os.path.isdir(db_path): + os.mkdir(db_path) dashboard_conf = os.path.join(configuration_path, 'wg-dashboard.ini') # Upgrade Required update = ""