Changeset 1494 for branches/locker-dev/locker/deploy
- Timestamp:
- Feb 26, 2010, 1:15:32 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/locker-dev/locker/deploy/bin/onathena
r1493 r1494 3 3 : ${aicontact:=scripts@mit.edu} 4 4 : ${aimaintainer:=scripts.mit.edu} 5 : ${ailocker=scripts} 5 6 6 7 … … 21 22 22 23 attach scripts 24 attach "$ailocker" 23 25 24 26 sshrun() { 25 /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 26 28 } 27 29 28 30 vsshrun() { 29 /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" "$@" 30 32 } 31 33 32 34 checksqlpass() { 33 errors=`sshrun " sql/bin$scriptsdev/test-password"`35 errors=`sshrun "/mit/scripts/sql/bin$scriptsdev/test-password"` 34 36 if [ "$errors" != "" ]; then 35 37 if [ "$1" -eq 1 ]; then … … 141 143 142 144 if [ "$requires_sql" -eq 1 ]; then 143 sqlinfo=`sshrun " sql/bin$scriptsdev/get-password"`145 sqlinfo=`sshrun "/mit/scripts/sql/bin$scriptsdev/get-password"` 144 146 if [ "$sqlinfo" = "" ]; then 145 147 echo … … 207 209 208 210 if [ "$wizard" != "" ]; then 209 vsshrun " wizard/bin/wizard" "install" "$@" "$wizard" "$lroot/web_scripts/$addrend"211 vsshrun "/mit/$ailocker/wizard/bin/wizard" "install" "$@" "$wizard" "$lroot/web_scripts/$addrend" 210 212 exit 0 211 213 fi … … 238 240 if [ "$prompt_password" -eq 1 ]; then 239 241 stty -echo 240 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" 241 243 stty echo 242 244 fi … … 245 247 echo "Unpacking $sname... (this step might take several minutes)" 246 248 # xavid: use p to keep the same permissions as in the file 247 athrun scripts gtar zxpf "/mit/ scripts/deploy$scriptsdev/$deploy.tar.gz"249 athrun scripts gtar zxpf "/mit/$ailocker/deploy$scriptsdev/$deploy.tar.gz" 248 250 files=`athrun scripts gfind . -mindepth 1 -maxdepth 1 | grep -v .admin` 249 251 numfiles=`echo "$files" | wc -l` … … 254 256 fi 255 257 fi 256 if [ -f "/mit/ scripts/deploy$scriptsdev/php.ini/$deploy" ]; then258 if [ -f "/mit/$ailocker/deploy$scriptsdev/php.ini/$deploy" ]; then 257 259 nodot=`echo "$lname" | sed "/\./s///"`; 258 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 259 261 athrun scripts gfind . -mindepth 1 -type d -exec sh -c 'ln -sf "`echo "$1" | sed '\''s,[^/],,g; s,/,../,g'\''`php.ini" "$1/"' -- {} \; 260 262 fi 261 263 cd "$origdir" 262 264 263 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" 264 266 rm -f "$lroot/web_scripts/$addrend/.scripts-tmp" 265 267 checkfailed
Note: See TracChangeset
for help on using the changeset viewer.