X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=buildd%2Fupload_isos.sh;h=25d3453c982c38ab1bc35086eb94db117b9d7d74;hb=9e76910676247609e681ee4d1b7f4d955ca288dc;hp=9f709dd5576ee095b26306454a6ae611e954d88a;hpb=0edfd588036d9663063186c6f185391000c0bfaf;p=grml-live.git diff --git a/buildd/upload_isos.sh b/buildd/upload_isos.sh index 9f709dd..25d3453 100755 --- a/buildd/upload_isos.sh +++ b/buildd/upload_isos.sh @@ -1,10 +1,24 @@ #!/bin/sh -. main.sh || exit 1 +# Filename: /usr/share/grml-live/buildd/upload_isos.sh +# Purpose: upload grml ISOs to a rsync server +# Authors: grml-team (grml.org), (c) Michael Prokop +# Bug-Reports: see http://grml.org/bugs/ +# License: This file is licensed under the GPL v2 or any later version. +# Latest change: Mon Oct 22 19:50:36 CEST 2007 [mika] +################################################################################ + +. /etc/grml/grml-buildd.conf || exit 1 +[ -n "$RSYNC_MIRROR" ] || exit 2 +[ -n "$ISO_DIR" ] || exit 3 + +cd $ISO_DIR || exit 4 + umask 002 -cd /srv/grml-isos || exit 1 for file in *.iso ; do - [ -f "${file}.md5" ] || md5sum $file > ${file}.md5 - chmod 664 $file - chmod 664 ${file}.md5 + [ -f "${file}.md5" ] || md5sum "$file" > "${file}".md5 + chmod 664 "$file" + chmod 664 "${file}".md5 done -rsync --partial -az --quiet $ISO_DIR/* grml-build@debian.netcologne.de:/home/ftp/www.grml.org/daily/ +rsync --partial -az --quiet $ISO_DIR/* $RSYNC_MIRROR + +## END OF FILE #################################################################