source: locker/bin/signup-cron @ 1087

Last change on this file since 1087 was 1087, checked in by geofft, 15 years ago
multiplexer over scripts-start/signup-* for "add scripts; scripts" Plus copy the attach -q thing from signup-web to -mail and -cron
  • Property svn:executable set to *
File size: 664 bytes
RevLine 
[127]1#!/bin/sh
2
[1087]3attach -q scripts
[127]4. /mit/scripts/bin$scriptsdev/signup-minimal
5
6if [ ! -d "/mit/$lname/cron_scripts/" ]; then
[660]7  mkdir -p /mit/$lname/cron_scripts
[127]8  fs sa /mit/$lname/cron_scripts system:anyuser l
[380]9  fs sa /mit/$lname/cron_scripts system:authuser none
[127]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."
14else
15  success "the cron script service" "The directory /mit/$lname/cron_scripts already exists." 
16fi
Note: See TracBrowser for help on using the repository browser.