Changeset 660 for locker/bin


Ignore:
Timestamp:
Feb 16, 2008, 6:11:08 PM (16 years ago)
Author:
geofft
Message:
mkdir -p, to avoid errors if it's already there
revert removal of 2>/dev/null from sshrun to suppress banner

Location:
locker/bin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • locker/bin/signup-cron

    r659 r660  
    55
    66if [ ! -d "/mit/$lname/cron_scripts/" ]; then
    7   mkdir /mit/$lname/cron_scripts
     7  mkdir -p /mit/$lname/cron_scripts
    88  fs sa /mit/$lname/cron_scripts system:anyuser l
    99  fs sa /mit/$lname/cron_scripts system:authuser none
  • locker/bin/signup-mail

    r659 r660  
    55
    66if [ ! -d "/mit/$lname/mail_scripts/" ]; then
    7   mkdir /mit/$lname/mail_scripts
     7  mkdir -p /mit/$lname/mail_scripts
    88  fs sa /mit/$lname/mail_scripts system:anyuser l
    99  fs sa /mit/$lname/mail_scripts system:authuser none
  • locker/bin/signup-minimal

    r659 r660  
    7575fi
    7676
    77 mkdir "/mit/$lname/.scripts-signup"
     77mkdir -p "/mit/$lname/.scripts-signup"
    7878
    7979if [ ! -d "/mit/$lname/.scripts-signup" ]; then
  • locker/bin/signup-sql

    r659 r660  
    99
    1010sshrun() {
    11   athrun scripts scripts-ssh "$lname" "/mit/scripts/$@"
     11  athrun scripts scripts-ssh "$lname" "/mit/scripts/$@" 2>/dev/null
    1212}
    1313
     
    4242echo 1. Your personal Athena account
    4343echo 2. A locker that you control \(a club, a course, etc\)
    44 echo If you do not understand this question, you should answer \'1\'.
     44echo "If you do not understand this question, you should answer '1'".
    4545printf "Please enter either '1' or '2' (without quotes): "
    4646read whofor
     
    7373
    7474if [ ! -f "$lroot/.my.cnf" ]; then
    75   mkdir $lroot/.sql
     75  mkdir -p $lroot/.sql
    7676  fs sa $lroot/.sql system:anyuser none
    7777  fs sa $lroot/.sql system:authuser none
Note: See TracChangeset for help on using the changeset viewer.