get-token: call aklog when getting initial tickets
authorClinton Ebadi <clinton@unknownlamer.org>
Mon, 23 Apr 2018 22:50:51 +0000 (18:50 -0400)
committerClinton Ebadi <clinton@unknownlamer.org>
Mon, 23 Apr 2018 22:50:51 +0000 (18:50 -0400)
krenew will renew or acquire tokens, kinit does not acquire tokens.

Was causing first run of get-token to not actually get tokens.

get-token

index 2a94863..d596bf4 100755 (executable)
--- a/get-token
+++ b/get-token
@@ -78,8 +78,7 @@ set -x
 
 (
 flock -s 666
-krenew -vtH 30 || kinit -V -kt $KEYTAB $USER/daemon@HCOOP.NET
-#aklog
+krenew -vtH 30 || (kinit -V -kt $KEYTAB $USER/daemon@HCOOP.NET && aklog)
 
 # list tokens, for the sake of debugging
 tokens