uploaded restored_config.zip is now placed in provided config folder and not the working directory where it will be ignored on restart

This commit is contained in:
prash3r 2022-09-03 13:43:17 +02:00
parent 2f085965c7
commit 2076c66eb5

View file

@ -116,8 +116,8 @@ class SystemController:
try:
content = backup_file.read()
if backup_file and self.allowed_file(filename, 'zip'):
self.path = os.path.join(".", "restored_config.zip")
self.path = os.path.join(self.cbpi.config_folder._rawPath, "restored_config.zip")
f=open(self.path, "wb")
f.write(content)
f.close()