aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2022-11-17 11:11:45 +0100
committerOliver Smith <osmith@sysmocom.de>2022-11-17 11:15:07 +0100
commit9955dc327f807915c5c9f01186d9e7a3c44a9385 (patch)
tree3c8a39c843c62fc58aa11658acd8183319ce18d4
parent3c2aac23243c4f2c59aa2dc586739c380058d1b0 (diff)
DEBUG
-rwxr-xr-xcontrib/obs-mirror/rm-old-nightly-archives.sh7
1 files changed, 2 insertions, 5 deletions
diff --git a/contrib/obs-mirror/rm-old-nightly-archives.sh b/contrib/obs-mirror/rm-old-nightly-archives.sh
index 485bf01..98c81ee 100755
--- a/contrib/obs-mirror/rm-old-nightly-archives.sh
+++ b/contrib/obs-mirror/rm-old-nightly-archives.sh
@@ -1,9 +1,6 @@
-#!/bin/sh -e
+#!/bin/sh -ex
# Remove nightly archives older than one month (OS#4862)
-echo "Redirecting all output to: /home/pkgmirror/rm-old-nightly-archives.log"
-exec >"/home/pkgmirror/rm-old-nightly-archives.log" 2>&1
-
-DRY=0
+DRY=1
# Get removal date in seconds since epoch and display it
DATE_RM_SEC=$(expr $(date +%s) - 3600 \* 24 \* 32)