From 04855847afecf638c71802468a8a0c4413517335 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Tue, 22 Aug 2017 11:12:17 -0400 Subject: Fix zshenv to have the right environment for when we call rkinits from cron --- .zshenv | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to '.zshenv') diff --git a/.zshenv b/.zshenv index 8a55c57..49e85ad 100644 --- a/.zshenv +++ b/.zshenv @@ -1,11 +1,12 @@ aklogs () { for r in CS.CMU.EDU ANDREW.CMU.EDU; do - KRB5CCNAME=`klist -l | grep $r | sed -e s'/.*:://g'` aklog -c $r -k $r + KRB5CCNAME=`KRB5CCNAME=DIR:$HOME/.cache/krb5cc klist -l | grep $r | sed -e s'/.*:://g'` aklog -c $r -k $r done + aklog club.cc.cmu.edu } rkinits () { for r in CS.CMU.EDU ANDREW.CMU.EDU; do - KRB5CCNAME=`klist -l | grep $r | sed -e s'/.*:://g'` kinit -R rkavanag@$r + KRB5CCNAME=`KRB5CCNAME=DIR:$HOME/.cache/krb5cc klist -l | grep $r | sed -e s'/.*:://g'` kinit -R rkavanag@$r done aklogs } -- cgit v1.2.3