backups: yunohost should not ask confirmation that 'YunoHost is already installed' when restoring only apps

This commit is contained in:
Alexandre Aubin 2024-07-10 18:46:18 +02:00
parent b266e398ff
commit 9c22d36c6f

View file

@ -2328,7 +2328,7 @@ def backup_restore(name, system=[], apps=[], force=False):
# Add validation if restoring system parts on an already-installed system # 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" "/etc/yunohost/installed"
): ):
logger.warning(m18n.n("yunohost_already_installed")) logger.warning(m18n.n("yunohost_already_installed"))