mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-07-13 08:36:59 +00:00
Update dashboard.py
- Create WGDashboard_Backup
This commit is contained in:
parent
93cfc482b8
commit
cca5fd859c
@ -527,6 +527,9 @@ class WireguardConfiguration:
|
||||
print(f"[WGDashboard] Configuration file {self.configPath} created")
|
||||
self.__initPeersList()
|
||||
|
||||
if not os.path.exists(os.path.join(self.__getProtocolPath(), 'WGDashboard_Backup')):
|
||||
os.mkdir(os.path.join(self.__getProtocolPath(), 'WGDashboard_Backup'))
|
||||
|
||||
print(f"[WGDashboard] Initialized Configuration: {name}")
|
||||
if self.getAutostartStatus() and not self.getStatus() and startup:
|
||||
self.toggleConfiguration()
|
||||
|
Loading…
x
Reference in New Issue
Block a user