From d04c67ef83bd1e92ebf564bbe6ca8c112c26f59d Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 26 Feb 2018 18:43:08 +0100 Subject: [PATCH] Use datetime in install log file name --- install_yunohost | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/install_yunohost b/install_yunohost index 0d185aa..6cde7fb 100755 --- a/install_yunohost +++ b/install_yunohost @@ -19,7 +19,7 @@ set -u # Globals -readonly YUNOHOST_LOG="/var/log/yunohost-installation.log" +readonly YUNOHOST_LOG="/var/log/yunohost-installation_$(date +%Y%m%d_%H%M%S).log" ############################################################################### # Main functions # @@ -84,8 +84,6 @@ function main() { parse_options "$@" - rm -f $YUNOHOST_LOG - check_assertions step upgrade_system || die "Unable to update the system"