mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2024-11-22 23:27:45 +01:00
fixed, when database does not create, if no directory
This commit is contained in:
parent
e84616f5f5
commit
1d2c468d03
@ -28,6 +28,7 @@ dashboard_version = 'v2.3.1'
|
|||||||
# Dashboard Config Name
|
# Dashboard Config Name
|
||||||
configuration_path = os.getenv('CONFIGURATION_PATH', '.')
|
configuration_path = os.getenv('CONFIGURATION_PATH', '.')
|
||||||
db_path = os.path.join(configuration_path, 'db')
|
db_path = os.path.join(configuration_path, 'db')
|
||||||
|
os.mkdir(db_path)
|
||||||
dashboard_conf = os.path.join(configuration_path, 'wg-dashboard.ini')
|
dashboard_conf = os.path.join(configuration_path, 'wg-dashboard.ini')
|
||||||
sys.exit()
|
sys.exit()
|
||||||
# Upgrade Required
|
# Upgrade Required
|
||||||
|
Loading…
Reference in New Issue
Block a user