Last change
on this file since 850 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:
661 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | attach 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 | sed '/SCRIPTS_USER/s//'"$lname"'/g' /mit/scripts/deploy/crontab | sed '/SCRIPTS_DATE/s//'"$DATE"'/g' > /mit/$lname/cron_scripts/crontab |
---|
13 | success "the cron script service" "The directory /mit/$lname/cron_scripts has been created." |
---|
14 | else |
---|
15 | success "the cron script service" "The directory /mit/$lname/cron_scripts already exists." |
---|
16 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.