mirror of
https://github.com/YunoHost/install_script.git
synced 2024-09-03 20:06:25 +02:00
Use datetime in install log file name
This commit is contained in:
parent
ec297b87e0
commit
d04c67ef83
1 changed files with 1 additions and 3 deletions
|
@ -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"
|
||||||
|
|
Loading…
Add table
Reference in a new issue