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
@ -526,6 +526,9 @@ class WireguardConfiguration:
|
|||||||
self.__parser.write(configFile)
|
self.__parser.write(configFile)
|
||||||
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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user