Browse Source

log file publishing fixed

master
Chris 6 years ago
parent
commit
745d843805
  1. 13
      admin/generate.sh

13
admin/generate.sh

@ -53,28 +53,25 @@ log () {
# Always produce a log file in the destination folder # Always produce a log file in the destination folder
finish () { finish () {
date > $TMPDATE
log_file $TMPDATE
if [ -f $LOG ] if [ -f $LOG ]
then then
echo "Moving log file to $LOG $PUBLIC_WWW/" echo "Moving log.txt file to $LOG $PUBLIC_WWW/"
mv -v $LOG "$PUBLIC_WWW/" mv -Z -v $LOG "$PUBLIC_WWW/"
fi fi
if [ -f $TMPLOG ] if [ -f $TMPLOG ]
then then
rm -v $TMPLOG rm $TMPLOG
fi fi
if [ -f $TMPERR ] if [ -f $TMPERR ]
then then
rm -v $TMPERR rm $TMPERR
fi fi
if [ -f $TMPDATE ] if [ -f $TMPDATE ]
then then
rm -v $TMPDATE rm $TMPDATE
fi fi

Loading…
Cancel
Save