Change in osmo-ci[master]: contrib/obs-mirror: redirect all output to a log file

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Mon Dec 20 13:35:22 UTC 2021


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmo-ci/+/26625 )

Change subject: contrib/obs-mirror: redirect all output to a log file
......................................................................

contrib/obs-mirror: redirect all output to a log file

Related: SYS#5764
Change-Id: Ie56c901877a3b0a1ad566cb243ab698f292407d5
---
M contrib/obs-mirror/obs-mirror.sh
M contrib/obs-mirror/rm-old-nightly-archives.sh
2 files changed, 6 insertions(+), 0 deletions(-)

Approvals:
  laforge: Looks good to me, approved
  pespin: Looks good to me, but someone else must approve
  Jenkins Builder: Verified



diff --git a/contrib/obs-mirror/obs-mirror.sh b/contrib/obs-mirror/obs-mirror.sh
index 6ac3484..529aea1 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 3a5f276..e28bce1 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

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/26625
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: Ie56c901877a3b0a1ad566cb243ab698f292407d5
Gerrit-Change-Number: 26625
Gerrit-PatchSet: 2
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211220/9580b286/attachment.htm>


More information about the gerrit-log mailing list