Last change
on this file since 673 was
660,
checked in by geofft, 17 years ago
|
mkdir -p, to avoid errors if it's already there
revert removal of 2>/dev/null from sshrun to suppress banner
|
-
Property svn:executable set to
*
|
File size:
677 bytes
|
Rev | Line | |
---|
[127] | 1 | #!/bin/sh |
---|
| 2 | |
---|
[659] | 3 | attach scripts |
---|
[127] | 4 | . /mit/scripts/bin$scriptsdev/signup-minimal |
---|
| 5 | |
---|
| 6 | if [ ! -d "/mit/$lname/mail_scripts/" ]; then |
---|
[660] | 7 | mkdir -p /mit/$lname/mail_scripts |
---|
[127] | 8 | fs sa /mit/$lname/mail_scripts system:anyuser l |
---|
[380] | 9 | fs sa /mit/$lname/mail_scripts system:authuser none |
---|
[127] | 10 | fs sa /mit/$lname/mail_scripts daemon.scripts read |
---|
| 11 | sed /SCRIPTS_USER/s//$lname/ /mit/scripts/bin/procmailrc > /mit/$lname/mail_scripts/procmailrc |
---|
| 12 | # echo -e ":0\n*\n! $USER@mit.edu" >/mit/$lname/mail_scripts/procmailrc |
---|
| 13 | success "the mail script service" "The directory /mit/$lname/mail_scripts has been created." |
---|
| 14 | else |
---|
| 15 | success "the mail script service" "The directory /mit/$lname/mail_scripts already exists." |
---|
| 16 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.