mirror of
https://github.com/PiBrewing/craftbeerpi4.git
synced 2024-11-25 08:28:23 +01:00
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:
parent
2f085965c7
commit
2076c66eb5
1 changed files with 2 additions and 2 deletions
|
@ -116,7 +116,7 @@ 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)
|
||||
|
|
Loading…
Reference in a new issue