]> git.ipfire.org Git - people/ms/nightly-builds.git/commitdiff
build.sh: Create atomic copy operations and compress using zlib
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 6 Feb 2020 21:06:53 +0000 (21:06 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 6 Feb 2020 21:06:53 +0000 (21:06 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
build.sh

index a4e08afea31f24ef258a1a9e6ab7f6cfb4fee764..569037b2308d52c2841450591d992a8022982943 100755 (executable)
--- a/build.sh
+++ b/build.sh
@@ -5,7 +5,7 @@ LOCKFILE="/tmp/.nightly-builds.lock"
 
 UPLOAD_DIR="${BASEDIR}/upload"
 UPLOAD_TO="pakfire@fs01.haj.ipfire.org:/pub/nightly"
-RSYNC_ARGS=""
+RSYNC_ARGS=( "--delay-updates" )
 
 extract_installer_from_iso() {
        local dir="${1}"
@@ -119,7 +119,7 @@ sync() {
                kinit -k -t /etc/krb5.keytab "host/${HOSTNAME}"
        fi
 
-       rsync -avHz --progress ${RSYNC_ARGS} \
+       rsync -avHzz --progress "${RSYNC_ARGS[@]}" \
                "${UPLOAD_DIR}/" "${UPLOAD_TO}"
 }