1
0
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:
Galonza Peter 2021-10-24 01:51:04 +03:00
parent e84616f5f5
commit 1d2c468d03

View File

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