summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorLaura Abbott <labbott@fedoraproject.org>2017-02-23 15:20:54 -0800
committerLaura Abbott <labbott@fedoraproject.org>2017-02-23 15:20:54 -0800
commit3d652a572b4e31490e8e004b6c94d8df7a173870 (patch)
treef9088d60aa07aceabe3f9262a4f9b6092e7fb773 /scripts
parent0757590438b20f324d10068bf0aaea349754eb61 (diff)
downloadkernel-3d652a572b4e31490e8e004b6c94d8df7a173870.tar.gz
kernel-3d652a572b4e31490e8e004b6c94d8df7a173870.tar.xz
kernel-3d652a572b4e31490e8e004b6c94d8df7a173870.zip
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.
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/rawhide-snapshot.sh7
1 files changed, 7 insertions, 0 deletions
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"