[fix] Allow backup_restore action when YunoHost is not postinstalled

This commit is contained in:
kload 2014-10-26 00:03:09 +02:00
parent dfe373d591
commit f4e369d4bd

View file

@ -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