Ignore:
Timestamp:
Apr 1, 2010, 5:57:23 AM (12 years ago)
Author:
mitchb
Message:
Make procmail and cron try harder to actually mail the signup user

At present, we try to set up the initial crontab or procmailrc to
send mail to the user who signed a locker up for the cron or mail
service by stripping off the @REALM from the Kerberos principal.
We need to also strip non-null instances off to get the username.
(If you're doing signups for lockers using machine or service
principals, you ought to be able to fend for yourself.)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/locker-dev/locker/bin/signup-cron

    r1521 r1534  
    1010  fs sa /mit/$lname/cron_scripts daemon.scripts write
    1111  DATE=`date`
    12   signupuser=`echo "$principal" | sed 's/@.*$//'`
     12  signupuser=`echo "$principal" | sed 's/[/@].*$//'`
    1313  sed '/SCRIPTS_USER/s//'"$lname"'/g' /mit/scripts/bin$scriptsdev/crontab | sed '/ATHENA_USER/s//'"$signupuser"'/g' | sed '/SCRIPTS_DATE/s//'"$DATE"'/g' > /mit/$lname/cron_scripts/crontab
    1414  echo "By default, output from cron jobs for the $lname locker will be mailed"
Note: See TracChangeset for help on using the changeset viewer.