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:
parent
bed08109fa
commit
7ad65956c9
@ -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 = ""
|
||||
|
Loading…
Reference in New Issue
Block a user