Ignore:
Timestamp:
Mar 20, 2007, 9:45:51 PM (18 years ago)
Author:
jbarnold
Message:
Another attempt to fix the automatic installer bug
File:
1 edited

Legend:

Unmodified
Added
Removed
  • locker/deploy/bin/onathena

    r237 r240  
    3030}
    3131
     32#if [ "$override" = "" ]; then
    3233#echo "The scripts.mit.edu automatic installers are currently unavailable."
    3334#echo "We hope to make them available again soon."
    3435#echo "If you would like us to notify you as soon as they are available again,"
    3536#echo "let us know by sending us an e-mail at scripts@mit.edu"
    36 #exit
     37#exit
     38#fi
    3739
    3840echo
     
    164166fi
    165167
    166 if [ "$prompt_password" -eq 1 ]; then
    167     stty -echo
    168     sshrun "deploy$scriptdev/bin/prompt-password '$sname' '$deploy' '$addrend' '$admin_username'"
    169     stty echo
    170 fi
    171 
    172 echo
    173 echo "Unpacking $sname... (this step might take several minutes)"
    174 
    175 if [ "$create_dir" = "" ]; then
    176   create_dir=0
    177 fi
    178 
    179 if [ "$create_dir" -eq 1 ]; then
    180   mkdir -p "$lroot/scripts-$deploy"
    181   fs sa "$lroot/scripts-$deploy" system:anyuser none
    182   fs sa "$lroot/scripts-$deploy" system:authuser none
    183   fs sa "$lroot/scripts-$deploy" daemon.scripts write
    184   fs sa "$lroot/scripts-$deploy" system:scripts-security-upd write
    185 fi
    186 
    187168origdir=`pwd`
    188169mkdir -p "$lroot/web_scripts_tmp"
     
    198179fs sa . daemon.scripts write
    199180fs sa . system:scripts-security-upd write
     181
     182if [ "$prompt_password" -eq 1 ]; then
     183    stty -echo
     184    sshrun "deploy$scriptsdev/bin/prompt-password '$sname' '$deploy' '$addrend' '$admin_username'"
     185    stty echo
     186fi
     187
     188echo
     189echo "Unpacking $sname... (this step might take several minutes)"
     190
     191if [ "$create_dir" = "" ]; then
     192  create_dir=0
     193fi
     194
     195if [ "$create_dir" -eq 1 ]; then
     196  mkdir -p "$lroot/scripts-$deploy"
     197  fs sa "$lroot/scripts-$deploy" system:anyuser none
     198  fs sa "$lroot/scripts-$deploy" system:authuser none
     199  fs sa "$lroot/scripts-$deploy" daemon.scripts write
     200  fs sa "$lroot/scripts-$deploy" system:scripts-security-upd write
     201fi
     202
    200203athrun scripts gtar zxf "/mit/scripts/deploy$scriptsdev/$deploy.tar.gz"
    201 files=`athrun scripts gfind . -mindepth 1 -maxdepth 1`
     204files=`athrun scripts gfind . -mindepth 1 -maxdepth 1 | grep -v .admin`
    202205numfiles=`echo "$files" | wc -l`
    203206if [ "$numfiles" -eq 1 ]; then
Note: See TracChangeset for help on using the changeset viewer.