Skip to content

Commit

Permalink
Write to a log file dated "sunday" not "last sunday". Thus a Sunday
Browse files Browse the repository at this point in the history
installation will be logged for today's date.  Any other installation will be
logged for next Sunday's date.  This is what we want if the log is read on
Monday mornings.
  • Loading branch information
painter1 committed May 18, 2021
1 parent b0b251e commit 72b623e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion standard_installs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

source /home/painter/.bash_profile

export LOGFILE=/var/log/synda/install/install-`date -d last-sunday --iso-8601=date`.log
export LOGFILE=/var/log/synda/install/install-`date -d sunday --iso-8601=date`.log
#...was export LOGFILE=/var/log/synda/install/install.log
echo >> $LOGFILE 2>&1
echo `date --iso-8601=minutes` "begin standard_installs_v3.sh" >> $LOGFILE 2>&1
Expand Down

0 comments on commit 72b623e

Please sign in to comment.