X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=buildd%2Fupload_isos.sh;h=9755452f4ddc8aa092e96fb7710d2b66cb33e52f;hb=246b13f8acb8328c7a7c0a03219f794e3b4339fc;hp=17b5f6737780ab4546a1408ea523959e33e03dde;hpb=a49504d976dc57d6c50be3a632a98acacdac962d;p=grml-live.git diff --git a/buildd/upload_isos.sh b/buildd/upload_isos.sh index 17b5f67..9755452 100755 --- a/buildd/upload_isos.sh +++ b/buildd/upload_isos.sh @@ -1,19 +1,22 @@ #!/bin/sh -# Filename: upload_isos.sh -# Purpose: upload generated ISOs to daily.grml.org +# Filename: /usr/share/grml-live/buildd/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: Mit Okt 10 09:46:08 CEST 2007 [mika] +# Latest change: Mon Oct 22 19:11:33 CEST 2007 [mika] ################################################################################ -cd /grml-live/grml-isos || exit 1 +. /usr/share/grml-live/buildd/buildd/functions.sh || exit 1 +[ -n "$RSYNC_MIRROR" ] || exit 2 +cd $ISO_DIR || exit 3 + +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 -umask 002 -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 #################################################################