diff --git a/contrib/obs-mirror/obs-mirror.sh b/contrib/obs-mirror/obs-mirror.sh index 6ac34843..529aea1d 100755 --- a/contrib/obs-mirror/obs-mirror.sh +++ b/contrib/obs-mirror/obs-mirror.sh @@ -9,6 +9,9 @@ # # See also: OS#4862 +echo "Redirecting all output to: /home/pkgmirror/obs-mirror.log" +exec >"/home/pkgmirror/obs-mirror.log" 2>&1 + set -e -x SCRIPT_DIR="$(realpath "$(dirname "$(realpath "$0")")")" diff --git a/contrib/obs-mirror/rm-old-nightly-archives.sh b/contrib/obs-mirror/rm-old-nightly-archives.sh index 3a5f2761..e28bce14 100755 --- a/contrib/obs-mirror/rm-old-nightly-archives.sh +++ b/contrib/obs-mirror/rm-old-nightly-archives.sh @@ -1,5 +1,8 @@ #!/bin/sh -e # 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 # Get removal date in seconds since epoch and display it