From cf619fe13497f46f70a8c1f4ea6a23a7e99c7efb Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 24 Apr 2019 19:02:35 +0200 Subject: [PATCH] Fix / improve success mark in logs --- src/yunohost/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/yunohost/tools.py b/src/yunohost/tools.py index 5128d0cbe..8797f7349 100644 --- a/src/yunohost/tools.py +++ b/src/yunohost/tools.py @@ -685,7 +685,7 @@ def tools_upgrade(operation_logger, auth, apps=None, system=False): MOULINETTE_LOCK = "/var/run/moulinette_yunohost.lock" wait_until_end_of_yunohost_command = "(while [ -f {} ]; do sleep 2; done)".format(MOULINETTE_LOCK) - mark_success = "(echo 'success: true' > {})".format(operation_logger.md_path) + mark_success = "(echo 'Done!' | tee -a {} && echo 'success: true' >> {})".format(logfile, operation_logger.md_path) update_log_metadata = "sed -i \"s/ended_at: .*$/ended_at: $(date -u +'%Y-%m-%d %H:%M:%S.%N')/\" {}" update_log_metadata = update_log_metadata.format(operation_logger.md_path)