system-config/modules/openstack_project/files/bandersnatch-mirror-update.sh
James E. Blair 01f30d523b Temporarily stop releasing after bandersnatch
We're in the middle of a long initial vos release to a new RO site
and we don't want the bandersnatch cron to accidentally start a new
one when this finishes.  Instead, we want to manually release until
we are certain that the release runtime is down to a manageable
level.

Change-Id: Ib5af8d3bbd4439fc414e6df87e6f8b37807fa138
2016-02-02 08:16:57 -08:00

21 lines
763 B
Bash

#!/bin/bash
# Copyright 2016 IBM Corp.
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
echo "Obtaining bandersnatch tokens and running bandersnatch."
k5start -t -f /etc/bandersnatch.keytab service/bandersnatch -- timeout -k 2m 30m run-bandersnatch
echo "Done."