diff options
author | Oliver Smith <osmith@sysmocom.de> | 2022-11-17 11:11:45 +0100 |
---|---|---|
committer | Oliver Smith <osmith@sysmocom.de> | 2022-11-17 11:15:07 +0100 |
commit | 9955dc327f807915c5c9f01186d9e7a3c44a9385 (patch) | |
tree | 3c8a39c843c62fc58aa11658acd8183319ce18d4 | |
parent | 3c2aac23243c4f2c59aa2dc586739c380058d1b0 (diff) |
DEBUG
Change-Id: Ide709a0c965c36b47e004fd39e3f11b9ef222a7b
-rwxr-xr-x | contrib/obs-mirror/rm-old-nightly-archives.sh | 7 |
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) |