X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=buildd%2Ffunctions.sh;h=36d71e72d4194bb6d34ad247b72d69dff47e9b86;hb=90012e0b7d8c03ca32d30427b3c2f8737b4e9524;hp=b65814352b6e2297261d216830a6c5dd15e2cb2d;hpb=58b2d63c46d70d0eb08e5c1f7dd3d1a4ec76ca9e;p=grml-live.git diff --git a/buildd/functions.sh b/buildd/functions.sh index b658143..36d71e7 100755 --- a/buildd/functions.sh +++ b/buildd/functions.sh @@ -1,3 +1,4 @@ +#!/bin/sh # Filename: /usr/share/grml-live/buildd/functions.sh # Purpose: main function file for grml-live buildd # Authors: grml-team (grml.org), (c) Michael Prokop @@ -23,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." @@ -89,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}"/ }