mirror of
https://github.com/donaldzou/WGDashboard
synced 2025-02-26 05:58:47 +00:00
Update dashboard.py
- Create WGDashboard_Backup
This commit is contained in:
parent
93cfc482b8
commit
cca5fd859c
@ -526,6 +526,9 @@ class WireguardConfiguration:
|
||||
self.__parser.write(configFile)
|
||||
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:
|
||||
|
Loading…
Reference in New Issue
Block a user