| 
                Last change
                  on this file since 2343 was
                  1938,
                  checked in by achernya, 14 years ago
           | 
        
        
          | 
            Merge r1878-r1937 from trunk to branches/fc15-dev
           | 
        
        
          
            
              - 
                  Property svn:executable set to
                  
*
               
             
           | 
        
        | 
            File size:
            981 bytes
           | 
      
      
        
  | Line |   | 
|---|
| 1 | #!/bin/sh | 
|---|
| 2 |  | 
|---|
| 3 | attach -q scripts | 
|---|
| 4 | . /mit/scripts/bin$scriptsdev/signup-minimal | 
|---|
| 5 |  | 
|---|
| 6 | if [ ! -d "/mit/$lname/cron_scripts/" ]; then | 
|---|
| 7 |   mkdir -p /mit/$lname/cron_scripts | 
|---|
| 8 |   fs sa /mit/$lname/cron_scripts system:anyuser l | 
|---|
| 9 |   fs sa /mit/$lname/cron_scripts system:authuser none | 
|---|
| 10 |   fs sa /mit/$lname/cron_scripts daemon.scripts write | 
|---|
| 11 |   DATE=`date` | 
|---|
| 12 |   signupuser=`echo "$principal" | sed 's/[/@].*$//'` | 
|---|
| 13 |   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 | 
|---|
| 14 |   echo "By default, output from cron jobs for the $lname locker will be mailed" | 
|---|
| 15 |   echo "to $signupuser@mit.edu.  You should edit /mit/$lname/cron_scripts/crontab" | 
|---|
| 16 |   echo "to change this and set up your cron jobs." | 
|---|
| 17 |   success "the cron script service" "The directory /mit/$lname/cron_scripts has been created." | 
|---|
| 18 | else | 
|---|
| 19 |   success "the cron script service" "The directory /mit/$lname/cron_scripts already exists."  | 
|---|
| 20 | fi | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.