Changeset 1938 for branches/fc15-dev/locker/deploy/bin/onathena
- Timestamp:
- Jul 31, 2011, 12:32:31 AM (13 years ago)
- Location:
- branches/fc15-dev
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/fc15-dev
- Property svn:mergeinfo changed
/trunk merged: 1887-1901,1903-1906,1912,1915-1928,1931-1937
- Property svn:mergeinfo changed
-
branches/fc15-dev/locker
-
Property
svn:mergeinfo
set to
False
/branches/fc11-dev/locker merged eligible /branches/fc13-dev/locker merged eligible /branches/locker-dev merged eligible /branches/locker-dev/locker merged eligible /trunk/locker merged eligible
-
Property
svn:mergeinfo
set to
False
-
branches/fc15-dev/locker/deploy/bin
- Property svn:mergeinfo changed
/branches/locker-dev/locker/deploy/bin merged: 1556,1566-1568,1774,1805-1806,1837,1846-1847 /trunk/locker/deploy/bin merged: 1901,1903-1904 /branches/fc11-dev/locker/deploy/bin removed
- Property svn:mergeinfo changed
-
branches/fc15-dev/locker/deploy/bin/onathena
r1693 r1938 62 62 echo 63 63 echo "Please report problems with this installer to $aicontact." 64 echo 65 echo "Are you performing this install for:" 66 echo "1. Your personal Athena account" 67 echo "2. A locker that you control (a club, a course, etc)" 68 echo "If you do not understand this question, you should answer '1'." 69 printf "Please enter either '1' or '2' (without quotes): " 70 read whofor 71 if [ "$whofor" = 1 ]; then 72 lname="${ATHENA_USER:-$USER}" 73 elif [ "$whofor" = 2 ]; then 74 echo 75 echo "OK. $sname will be installed into a locker of your choice that" 76 echo "you control. Please enter the name of the selected locker below." 77 echo "(For the locker /mit/lsc -- which has a full path of" 78 echo "/afs/athena.mit.edu/activity/l/lsc -- you would simply enter lsc)." 79 printf "Locker name: " 80 read lname 64 65 if [ -n "$SCRIPTS_INSTALL_LOCKER" ]; then 66 lname=$SCRIPTS_INSTALL_LOCKER 81 67 else 82 68 echo 83 echo "ERROR:" 84 echo "You must select either '1' or '2'." 85 exit 1 86 fi 87 while true; do 88 if attach "$lname"; then 89 break 90 fi 91 echo "$lname is not a valid locker name." 92 printf "Locker name: " 93 read lname 94 done 69 echo "Are you performing this install for:" 70 echo "1. Your personal Athena account" 71 echo "2. A locker that you control (a club, a course, etc)" 72 echo "If you do not understand this question, you should answer '1'." 73 printf "Please enter either '1' or '2' (without quotes): " 74 read whofor 75 if [ "$whofor" = 1 ]; then 76 lname="${ATHENA_USER:-$USER}" 77 elif [ "$whofor" = 2 ]; then 78 echo 79 echo "OK. $sname will be installed into a locker of your choice that" 80 echo "you control. Please enter the name of the selected locker below." 81 echo "(For the locker /mit/lsc -- which has a full path of" 82 echo "/afs/athena.mit.edu/activity/l/lsc -- you would simply enter lsc)." 83 printf "Locker name: " 84 read lname 85 else 86 echo 87 echo "ERROR:" 88 echo "You must select either '1' or '2'." 89 exit 1 90 fi 91 while true; do 92 if attach "$lname"; then 93 break 94 fi 95 echo "$lname is not a valid locker name." 96 printf "Locker name: " 97 read lname 98 done 99 unset whofor 100 fi 95 101 lroot="/mit/$lname" 96 102 … … 101 107 . "/mit/scripts/bin$scriptsdev/signup-web" 102 108 103 echo 104 echo "Your new copy of $sname will appear on the web at a URL" 105 echo "that starts with http://$lname.scripts.mit.edu/" 106 echo "Please decide upon a complete URL and enter it below." 107 echo "You must enter one or more characters after mit.edu/" 108 echo "The completed address must only contain a-z, 0-9, and /." 109 printf "Desired address: http://$lname.scripts.mit.edu/" 110 read addrend 109 if [ -n "$SCRIPTS_INSTALL_ADDREND" ]; then 110 addrend=$SCRIPTS_INSTALL_ADDREND 111 else 112 echo 113 echo "Your new copy of $sname will appear on the web at a URL" 114 echo "that starts with http://$lname.scripts.mit.edu/" 115 echo "Please decide upon a complete URL and enter it below." 116 echo "You must enter one or more characters after mit.edu/" 117 echo "The completed address must only contain a-z, 0-9, and /." 118 printf "Desired address: http://$lname.scripts.mit.edu/" 119 read addrend 120 fi 111 121 112 122 addrend=`perl -0e 'print $ARGV[0] =~ /^([\w\/-]*[\w-])\/*$/' -- "$addrend"` … … 209 219 210 220 if [ "$wizard" != "" ]; then 211 vsshrun "/mit/$ailocker/wizard/bin/wizard" "install" "$@" "$wizard" "$lroot/web_scripts/$addrend" 221 if [ "$create_scripts_dir" -eq 1 ]; then 222 vsshrun "/mit/$ailocker/wizard/bin/wizard" "install" "--web-stub-path" "$lroot/web_scripts/$addrend" "$@" "$wizard" "$lroot/Scripts/$deploy/$addrend" 223 else 224 vsshrun "/mit/$ailocker/wizard/bin/wizard" "install" "$@" "$wizard" "$lroot/web_scripts/$addrend" 225 fi 212 226 exit 0 213 227 fi
Note: See TracChangeset
for help on using the changeset viewer.