From f4e369d4bdfd82f61f6a59d6bb61fd2b6fda1857 Mon Sep 17 00:00:00 2001 From: kload Date: Sun, 26 Oct 2014 00:03:09 +0200 Subject: [PATCH] [fix] Allow backup_restore action when YunoHost is not postinstalled --- bin/yunohost | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/yunohost b/bin/yunohost index 7913de091..947845586 100755 --- a/bin/yunohost +++ b/bin/yunohost @@ -38,7 +38,8 @@ if __name__ == '__main__': # Check that YunoHost is installed if not os.path.isfile('/etc/yunohost/installed') and \ - (len(args) < 2 or args[0] != 'tools' or args[1] != 'postinstall'): + (len(args) < 2 or (args[0] +' '+ args[1] != 'tools postinstall' and \ + args[0] +' '+ args[1] != 'backup restore')): from moulinette.interfaces.cli import colorize, get_locale # Init i18n