Use datetime in install log file name

This commit is contained in:
Alexandre Aubin 2018-02-26 18:43:08 +01:00
parent ec297b87e0
commit d04c67ef83

View file

@ -19,7 +19,7 @@ set -u
# Globals # 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 # # Main functions #
@ -84,8 +84,6 @@ function main()
{ {
parse_options "$@" parse_options "$@"
rm -f $YUNOHOST_LOG
check_assertions check_assertions
step upgrade_system || die "Unable to update the system" step upgrade_system || die "Unable to update the system"