system-config/modules/openstack_project/files/bandersnatch-mirror-update.sh
James E. Blair cc5fa1bdc8 Revert "Temporarily stop releasing after bandersnatch"
This reverts commit 01f30d523b.

It also changes it to make the vos release verbose, and to use
set -e rather than explicit error checking.

Change-Id: Iffcf03899792b17b4873742b513ebada7f2efd8d
2016-02-05 08:02:29 -08:00

26 lines
919 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.
set -e
echo "Obtaining bandersnatch tokens and running bandersnatch."
k5start -t -f /etc/bandersnatch.keytab service/bandersnatch -- timeout -k 2m 30m run-bandersnatch
echo "Bandersnatch completed successfully, running vos release."
k5start -t -f /etc/afsadmin.keytab service/afsadmin -- vos release -v mirror.pypi
echo "Done."