X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=buildd%2Ffunctions.sh;fp=buildd%2Ffunctions.sh;h=36d71e72d4194bb6d34ad247b72d69dff47e9b86;hp=c7d9ebcfc157b9a01ba5238fa7c34218e226b0d0;hb=90012e0b7d8c03ca32d30427b3c2f8737b4e9524;hpb=343ab03f983902acf628aebff804da2f6085a272 diff --git a/buildd/functions.sh b/buildd/functions.sh index c7d9ebc..36d71e7 100755 --- a/buildd/functions.sh +++ b/buildd/functions.sh @@ -24,7 +24,7 @@ type -p mutt 1>/dev/null 2>&1 || die "mutt binary not found. Exiting." # some defaults: PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11 -DATE="$(date +%Y%m%d)" +DATE=$(date +'%Y%m%d_%H%M%S') TMP_DIR="$(mktemp -d)" MUTT_HEADERS="$(mktemp)" [ -n "$TMP_DIR" ] || die "Could not create \$TMP_DIR. Exiting." @@ -90,8 +90,7 @@ create_logs() { # store logs on remote server: upload_logs() { [ -n "$RSYNC_MIRROR" ] || return 1 - umask 002 - rsync --exclude dmesg.log --times --partial --copy-links -az --quiet /var/log/grml-buildd.* \ + rsync --exclude dmesg.log --times --partial --copy-links -rltDz --quiet /var/log/grml-buildd.* \ $FAI_LOGFILES $GRML_LOGFILE $RSYNC_MIRROR/logs/"${NAME}_${DATE}"/ }