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.
This commit is contained in:
Laura Abbott 2017-02-23 15:20:54 -08:00
parent 0757590438
commit 3d652a572b

View File

@ -11,6 +11,13 @@
source scripts/kernel-version.sh 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 git fetch origin
if [ "$(git rev-parse origin/master)" != "$(git rev-parse HEAD)" ]; then 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" echo "I just did a git fetch and this branch does not match master"