X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=config%2Fdebian%2Fcron.monthly;h=3ca4a81a1e62a3f4a30713e0f2714a3254fd0f2e;hb=e4527938a6e1b0f460fcd0dfee7a05da304c7719;hp=57706bf8160ad49ad86be3ea6535f2440521931f;hpb=5b0c25d58e8298cf8eeb4bebaeda723ea563f281;p=dak.git diff --git a/config/debian/cron.monthly b/config/debian/cron.monthly index 57706bf8..3ca4a81a 100755 --- a/config/debian/cron.monthly +++ b/config/debian/cron.monthly @@ -1,8 +1,9 @@ -#!/bin/sh +#! /bin/bash # # Run at the beginning of the month via cron, out of dak's crontab. set -e +set -o pipefail set -u export SCRIPTVARS=/srv/ftp-master.debian.org/dak/config/debian/vars . $SCRIPTVARS @@ -19,9 +20,9 @@ for m in mail bxamail; do chown dak:ftpteam ${m} chmod 660 ${m} sleep 20 - gzip -9 ${m}-$DATE - chgrp $ftpgroup ${m}-$DATE.gz - chmod 660 ${m}-$DATE.gz + xz -9 ${m}-$DATE + chgrp $ftpgroup ${m}-$DATE.xz + chmod 660 ${m}-$DATE.xz fi; done