#!/bin/sh

# This script renews afsagent's tickets and tokens.
# It is called by afsagent's crontab every 8 hours.

# Option #1: invoke kinit with a password
#echo "password" | @kinit_path@ >/dev/null daemon/scripts.mit.edu

# Option #2: invoke kinit with a keytab
@kinit_path@ -k -t /home/afsagent/daemon.keytab daemon/scripts.mit.edu

# Obtain AFS tokens
@aklog_path@
@aklog_path@ -c sipb
