From 9c22d36c6f435eb19a0f3afb77834826c65ee85f Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 10 Jul 2024 18:46:18 +0200 Subject: [PATCH] backups: yunohost should not ask confirmation that 'YunoHost is already installed' when restoring only apps --- src/backup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backup.py b/src/backup.py index a016fccae..c034ae10d 100644 --- a/src/backup.py +++ b/src/backup.py @@ -2328,7 +2328,7 @@ def backup_restore(name, system=[], apps=[], force=False): # Add validation if restoring system parts on an already-installed system # - if restore_manager.targets.targets["system"] != [] and os.path.isfile( + if restore_manager.info["system"] != {} and restore_manager.targets.targets["system"] != [] and os.path.isfile( "/etc/yunohost/installed" ): logger.warning(m18n.n("yunohost_already_installed"))