From 3d652a572b4e31490e8e004b6c94d8df7a173870 Mon Sep 17 00:00:00 2001 From: Laura Abbott Date: Thu, 23 Feb 2017 15:20:54 -0800 Subject: Check for kerberos tickets in rawhide snapshot script Fedora now uses kerberos for authorization to services. Gently remind the user to get kerberos tokens if there are none available. --- scripts/rawhide-snapshot.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'scripts/rawhide-snapshot.sh') diff --git a/scripts/rawhide-snapshot.sh b/scripts/rawhide-snapshot.sh index b96bd38d9..210216b98 100755 --- a/scripts/rawhide-snapshot.sh +++ b/scripts/rawhide-snapshot.sh @@ -11,6 +11,13 @@ source scripts/kernel-version.sh +klist -s +if [ ! $? -eq 0 ]; then + echo "klist couldn't read the credential cache." + echo "Do you need to fix your kerberos tokens?" + exit 1 +fi + git fetch origin if [ "$(git rev-parse origin/master)" != "$(git rev-parse HEAD)" ]; then echo "I just did a git fetch and this branch does not match master" -- cgit