X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=grml-live;h=12596ee45d40dd7ac52d4eafab356a0368ab39f9;hp=7d8bb82160fdf2e3dd09469ad25a5f35d6658f1a;hb=a5f8527557ae9bdceb1227de4e023fa6a353234a;hpb=8a925594ec5057e995aac0b68fee8ed7925158b1 diff --git a/grml-live b/grml-live index 7d8bb82..12596ee 100755 --- a/grml-live +++ b/grml-live @@ -289,10 +289,20 @@ ISO_OUTPUT="$OUTPUT/grml_isos" # }}} # clean/zero grml-live logfile {{{ + +# keep for backwards compability reasons (default behaviour until grml-live 0.9.34) +if [ -n "$ZERO_LOGFILE" -a -z "$PRESERVE_LOGFILE" ] ; then + echo -n > $LOGFILE + einfo "Zeroing logfile $LOGFILE as requested via \$ZERO_LOGFILE." + ewarn "Please consider disabling the \$ZERO_LOGFILE option as grml-live clears..." + ewarn "... the logfile $LOGFILE by default (unless \$PRESERVE_LOGFILE is set) nowadays." + eend 0 +fi + if [ -n "$PRESERVE_LOGFILE" ] ; then echo "Preserving logfile $LOGFILE as requested via \$PRESERVE_LOGFILE" else - echo -n > $LOGFILE + echo -n > $LOGFILE fi # }}}