Changeset 1497 for trunk/locker/deploy/bin
- Timestamp:
- Feb 26, 2010, 2:25:25 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/locker/deploy/bin/onathena
- Property svn:mergeinfo changed
/branches/locker-dev/locker/deploy/bin/onathena merged: 1492-1496
r1421 r1497 1 1 #!/bin/sh 2 3 : ${aicontact:=scripts@mit.edu} 4 : ${aimaintainer:=scripts.mit.edu} 5 : ${ailocker:=scripts} 6 2 7 3 8 checkfailed() { … … 12 17 echo "Sorry, the installation failed:" 13 18 echo "$@" 14 echo "Please contact scripts@mit.eduand provide a copy of the output of this installer."19 echo "Please contact $aicontact and provide a copy of the output of this installer." 15 20 exit 1 16 21 } 17 22 18 23 attach scripts 24 [ "$ailocker" != "scripts" ] && attach "$ailocker" 19 25 20 26 sshrun() { 21 /afs/athena.mit.edu/contrib/scripts/bin$scriptsdev/scripts-ssh "$lname" " /mit/scripts/$@" 2>/dev/null27 /afs/athena.mit.edu/contrib/scripts/bin$scriptsdev/scripts-ssh "$lname" "$@" 2>/dev/null 22 28 } 23 29 24 30 vsshrun() { 25 /afs/athena.mit.edu/contrib/scripts/bin$scriptsdev/scripts-ssh "$lname" " /mit/scripts/$@"31 /afs/athena.mit.edu/contrib/scripts/bin$scriptsdev/scripts-ssh "$lname" "$@" 26 32 } 27 33 28 34 checksqlpass() { 29 errors=`sshrun " sql/bin$scriptsdev/test-password"`35 errors=`sshrun "/mit/scripts/sql/bin$scriptsdev/test-password"` 30 36 if [ "$errors" != "" ]; then 31 37 if [ "$1" -eq 1 ]; then … … 41 47 override=1 42 48 if [ "$override" = "" ]; then 43 echo "The scripts.mit.eduautomatic installers are currently unavailable."49 echo "The $aimaintainer automatic installers are currently unavailable." 44 50 echo "We hope to make them available again soon." 45 51 echo "If you would like us to notify you as soon as they are available again," 46 echo "let us know by sending us an e-mail at scripts@mit.edu"52 echo "let us know by sending us an e-mail at $aicontact" 47 53 exit 48 54 fi 49 55 50 56 echo 51 echo "== Welcome to the scripts.mit.eduinstaller for $sname =="57 echo "== Welcome to the $aimaintainer installer for $sname ==" 52 58 echo 53 59 … … 55 61 echo "see <http://scripts.mit.edu/start>." 56 62 echo 57 echo "Please report problems with this installer to scripts@mit.edu."63 echo "Please report problems with this installer to $aicontact." 58 64 echo 59 65 echo "Are you performing this install for:" … … 118 124 echo "You already have a directory corresponding to that web address." 119 125 echo "Please remove that directory, choose a different address, or" 120 echo "contact scripts@mit.edufor assistance."126 echo "contact $aicontact for assistance." 121 127 exit 1 122 128 fi … … 137 143 138 144 if [ "$requires_sql" -eq 1 ]; then 139 sqlinfo=`sshrun " sql/bin$scriptsdev/get-password"`145 sqlinfo=`sshrun "/mit/scripts/sql/bin$scriptsdev/get-password"` 140 146 if [ "$sqlinfo" = "" ]; then 141 147 echo … … 203 209 204 210 if [ "$wizard" != "" ]; then 205 vsshrun " wizard/bin/wizard" "install" "$@" "$wizard" "$lroot/web_scripts/$addrend"211 vsshrun "/mit/$ailocker/wizard/bin/wizard" "install" "$@" "$wizard" "$lroot/web_scripts/$addrend" 206 212 exit 0 207 213 fi … … 234 240 if [ "$prompt_password" -eq 1 ]; then 235 241 stty -echo 236 sshrun " deploy$scriptsdev/bin/prompt-password" "$sname" "$deploy" "$addrend" "$admin_username"242 sshrun "/mit/$ailocker/deploy$scriptsdev/bin/prompt-password" "$sname" "$deploy" "$addrend" "$admin_username" 237 243 stty echo 238 244 fi … … 241 247 echo "Unpacking $sname... (this step might take several minutes)" 242 248 # xavid: use p to keep the same permissions as in the file 243 athrun scripts gtar zxpf "/mit/ scripts/deploy$scriptsdev/$deploy.tar.gz"249 athrun scripts gtar zxpf "/mit/$ailocker/deploy$scriptsdev/$deploy.tar.gz" 244 250 files=`athrun scripts gfind . -mindepth 1 -maxdepth 1 | grep -v .admin` 245 251 numfiles=`echo "$files" | wc -l` … … 250 256 fi 251 257 fi 252 if [ -f "/mit/ scripts/deploy$scriptsdev/php.ini/$deploy" ]; then258 if [ -f "/mit/$ailocker/deploy$scriptsdev/php.ini/$deploy" ]; then 253 259 nodot=`echo "$lname" | sed "/\./s///"`; 254 sed -e "/SCRIPTS_USER/ s//$lname/" -e "/SCRIPTS_NODOT/ s//$nodot/" "/mit/ scripts/deploy$scriptsdev/php.ini/$deploy" > php.ini260 sed -e "/SCRIPTS_USER/ s//$lname/" -e "/SCRIPTS_NODOT/ s//$nodot/" "/mit/$ailocker/deploy$scriptsdev/php.ini/$deploy" > php.ini 255 261 athrun scripts gfind . -mindepth 1 -type d -exec sh -c 'ln -sf "`echo "$1" | sed '\''s,[^/],,g; s,/,../,g'\''`php.ini" "$1/"' -- {} \; 256 262 fi 257 263 cd "$origdir" 258 264 259 vsshrun " deploy$scriptsdev/bin/$deploy" "$sname" "$deploy" "$addrend" "$admin_username" "$requires_sql" "$scriptsdev" "$USER" || die "Unknown failure during configuration"265 vsshrun "/mit/$ailocker/deploy$scriptsdev/bin/$deploy" "$sname" "$deploy" "$addrend" "$admin_username" "$requires_sql" "$scriptsdev" "$USER" || die "Unknown failure during configuration" 260 266 rm -f "$lroot/web_scripts/$addrend/.scripts-tmp" 261 267 checkfailed … … 267 273 echo "(You can replace the http with https if you want to use encryption)" 268 274 echo "If you have trouble accessing it, feel free to contact" 269 echo "the scripts.mit.edu team by e-mailing scripts@mit.edu"275 echo "the $aimaintainer team by e-mailing $aicontact" 270 276 exit 0 - Property svn:mergeinfo changed
Note: See TracChangeset
for help on using the changeset viewer.