mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-07-13 16:46:58 +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")
|
print(f"[WGDashboard] Configuration file {self.configPath} created")
|
||||||
self.__initPeersList()
|
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}")
|
print(f"[WGDashboard] Initialized Configuration: {name}")
|
||||||
if self.getAutostartStatus() and not self.getStatus() and startup:
|
if self.getAutostartStatus() and not self.getStatus() and startup:
|
||||||
self.toggleConfiguration()
|
self.toggleConfiguration()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user