X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=buildd%2Fupload_isos.sh;h=25a33fd170815717de36acdfaa880e806a8d34bb;hb=1cc1fe9c63ab9a056fa5a7bbced84cbd3c5efc70;hp=67495001f1c36d6dfa12610b4c1e70e0c50f8fa3;hpb=328682f98d399e1f24ae7729ec740e56ef6f6257;p=grml-live.git diff --git a/buildd/upload_isos.sh b/buildd/upload_isos.sh index 6749500..25a33fd 100755 --- a/buildd/upload_isos.sh +++ b/buildd/upload_isos.sh @@ -1,16 +1,24 @@ #!/bin/sh -# Filename: upload_isos.sh -# Purpose: upload generated ISOs to daily.grml.org +# 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: Sun Oct 07 13:06:09 CEST 2007 [mika] +# Latest change: Mon Oct 22 19:50:36 CEST 2007 [mika] ################################################################################ -cd /grml-live/grml-isos || exit 1 +. /etc/grml/grml-buildd.conf || exit 1 +[ -n "$RSYNC_MIRROR" ] || exit 2 +[ -n "$ISO_DIR" ] || exit 3 + +cd $ISO_DIR || exit 4 + +umask 002 for file in *.iso ; do - [ -f "${file}.md5" ] || md5sum $file > $file.md5 + [ -f "${file}.md5" ] || md5sum $file > ${file}.md5 + chmod 664 $file + chmod 664 ${file}.md5 done -rsync --partial -az --quiet /grml-live/grml-isos/* grml-build@debian.netcologne.de:/home/ftp/www.grml.org/daily/ +rsync --partial -az --quiet $ISO_DIR/* $RSYNC_MIRROR ## END OF FILE #################################################################