Merge pull request #728 from decentral1se/bugfix/allow-to-display-logs-postinstall-stage

Allow to display logs when postinstall fails
This commit is contained in:
Alexandre Aubin 2019-05-31 15:22:01 +02:00 committed by GitHub
commit 0c6d61cb6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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