1
0
mirror of https://github.com/donaldzou/WGDashboard.git synced 2024-11-22 15:20:09 +01:00

fixed, if dir is exists

This commit is contained in:
Galonza Peter 2021-10-24 12:45:08 +03:00
parent bed08109fa
commit 7ad65956c9

View File

@ -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 = ""