Allow to display logs when postinstall fails

Closes https://github.com/YunoHost/issues/issues/1345.
This commit is contained in:
Luke Murphy 2019-05-23 09:42:16 +02:00
parent 9341da10ce
commit b091ab4029
No known key found for this signature in database
GPG key ID: 5E2EF5A63E3718CC

View file

@ -195,7 +195,8 @@ if __name__ == '__main__':
# Check that YunoHost is installed
if not os.path.isfile('/etc/yunohost/installed') and \
(len(args) < 2 or (args[0] +' '+ args[1] != 'tools postinstall' and \
args[0] +' '+ args[1] != 'backup restore')):
args[0] +' '+ args[1] != 'backup restore' and \
args[0] +' '+ args[1] != 'log display')):
from moulinette import m18n
# Init i18n