Resuse kerberos credentials if valid when running afs

This commit is contained in:
2016-07-13 23:06:31 -04:00
parent f0bad52b42
commit 420f4f0899

View File

@@ -1,4 +1,10 @@
#!/bin/bash #!/bin/bash
kinit klist -s
if [ $? -eq 0 ]
then
echo -e "\e[92mReusing old credentials\e[0m"
else
kinit
fi
aklog aklog
klist klist