mirror of
https://github.com/YunoHost/moulinette.git
synced 2024-09-03 20:06:31 +02:00
check postinstall
This commit is contained in:
parent
60cd26f2c8
commit
9d29143c35
1 changed files with 1 additions and 1 deletions
|
@ -187,7 +187,7 @@ def main():
|
|||
try:
|
||||
with open('/etc/yunohost/installed') as f: pass
|
||||
except IOError:
|
||||
if sys.argv[1] != 'tools' or sys.argv[2] != 'postinstall':
|
||||
if len(sys.argv) < 3 or 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)
|
||||
|
|
Loading…
Add table
Reference in a new issue