add function to list repo snapshots

This commit is contained in:
usman@cyberpersons.com
2023-03-08 12:16:27 +05:00
parent 1704edeac4
commit 2529414e81

View File

@@ -301,6 +301,9 @@ pass = {ObsecurePassword}
#command = f"echo '{json.dumps(Config)}' > {self.FinalPath}/config.json"
#ProcessUtilities.executioner(command, self.website.externalApp, True)
command = f'chown cyberpanel:cyberpanel {self.FinalPathRuctic}/config.json'
ProcessUtilities.executioner(command)
WriteToFile = open(f'{self.FinalPathRuctic}/config.json', 'w')
WriteToFile.write(json.dumps(Config))
WriteToFile.close()