From 1e91b1c8152a93eecf3a15d9177025006b1953f1 Mon Sep 17 00:00:00 2001 From: Paul Belanger Date: Thu, 25 Aug 2016 15:33:12 -0400 Subject: [PATCH] Add timestamp.txt for rsync mirrors This will be helpful for project who want to check datetime of our last update. I plan to add this to reprepro too, however that is a larger refactor. Change-Id: I768152b572098240ad2c60567880ca5ba48c6450 Signed-off-by: Paul Belanger --- modules/openstack_project/files/mirror/centos-mirror-update.sh | 2 +- modules/openstack_project/files/mirror/epel-mirror-update.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/openstack_project/files/mirror/centos-mirror-update.sh b/modules/openstack_project/files/mirror/centos-mirror-update.sh index 8b8ad138f4..595e1ea1f3 100755 --- a/modules/openstack_project/files/mirror/centos-mirror-update.sh +++ b/modules/openstack_project/files/mirror/centos-mirror-update.sh @@ -41,7 +41,7 @@ $K5START rsync -rlptDvz \ # TODO(pabelanger): Validate rsync process -date --iso-8601=ns +date --iso-8601=ns | $K5START tee $BASE/timestamp.txt echo "rsync completed successfully, running vos release." k5start -t -f /etc/afsadmin.keytab service/afsadmin -- vos release -v $MIRROR_VOLUME diff --git a/modules/openstack_project/files/mirror/epel-mirror-update.sh b/modules/openstack_project/files/mirror/epel-mirror-update.sh index b30f9ae554..26d4f7448c 100755 --- a/modules/openstack_project/files/mirror/epel-mirror-update.sh +++ b/modules/openstack_project/files/mirror/epel-mirror-update.sh @@ -38,7 +38,7 @@ $K5START rsync -rlptDvz \ # TODO(pabelanger): Validate rsync process -date --iso-8601=ns +date --iso-8601=ns | $K5START tee $BASE/timestamp.txt echo "rsync completed successfully, running vos release." k5start -t -f /etc/afsadmin.keytab service/afsadmin -- vos release -v $MIRROR_VOLUME