From 60cd26f2c8357a4b70d7e81b24f81f66c1f6c34b Mon Sep 17 00:00:00 2001 From: Kload Date: Thu, 13 Jun 2013 14:23:39 +0200 Subject: [PATCH] check postinstall --- parse_args | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parse_args b/parse_args index a491445b..37c5f679 100755 --- a/parse_args +++ b/parse_args @@ -187,7 +187,8 @@ def main(): try: with open('/etc/yunohost/installed') as f: pass except IOError: - raise YunoHostError(17, _("YunoHost is not correctly installed, please execute 'yunohost tools postinstall'")) + if sys.argv[1] != 'tools' or sys.argv[2] != 'postinstall': + raise YunoHostError(17, _("YunoHost is not correctly installed, please execute 'yunohost tools postinstall'")) args = parse_dict(action_map) args_dict = vars(args).copy()