Commit 32e77cdb authored by echel0n's avatar echel0n

Refactored backup to not restore privatekey.pem file when choosing not to restore config.

parent 3273630b
......@@ -924,7 +924,7 @@ def restore_config_zip(archive, targetDir, restore_database=True, restore_config
if not restore_database and member.split('/')[0] in ['main.db', 'main.db-shm', 'main.db-wal', 'cache.db', 'cache.db-shm', 'cache.db-wal']:
continue
if not restore_config and member.split('/')[0] == 'config.ini':
if not restore_config and member.split('/')[0] in ['config.ini', 'privatekey.pem']:
continue
if not restore_cache and member.split('/')[0] == 'cache':
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment