- Timestamp:
- Apr 2, 2009, 2:23:02 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified locker/deploy/bin/onathena ¶
r1041 r1045 96 96 echo 97 97 echo "Your new copy of $sname will appear on the web at a URL" 98 echo "that starts with http:// scripts.mit.edu/~$lname/"98 echo "that starts with http://$lname.scripts.mit.edu/" 99 99 echo "Please decide upon a complete URL and enter it below." 100 echo "You must enter one or more characters after ~$lname/"100 echo "You must enter one or more characters after mit.edu/" 101 101 echo "The completed address must only contain a-z, 0-9, and /." 102 printf "Desired address: http:// scripts.mit.edu/~$lname/"102 printf "Desired address: http://$lname.scripts.mit.edu/" 103 103 read addrend 104 104 … … 107 107 echo 108 108 echo "ERROR:" 109 echo "You must enter one or more characters after ~$lname/"109 echo "You must enter one or more characters after mit.edu/" 110 110 echo "The completed address must only contain a-z, 0-9, and /." 111 111 exit 1 … … 190 190 fs sa . daemon.scripts write 191 191 fs sa . system:scripts-security-upd write 192 echo "This directory is used to store temporary files such as sessions. If you delete it, auto-installed packages will fail." > DO_NOT_DELETE.txt192 echo "This directory is necessary to store login sessions and other transient files for auto-installed packages from scripts.mit.edu." > DO_NOT_DELETE.txt 193 193 mkdir -p "$lroot/web_scripts/$addrend" 194 194 cd "$lroot/web_scripts/$addrend" … … 207 207 echo "Unpacking $sname... (this step might take several minutes)" 208 208 209 # This version is deprecated, use create_scripts_dir instead 210 209 211 if [ "$create_dir" = "" ]; then 210 212 create_dir=0 … … 219 221 fi 220 222 221 athrun scripts gtar zxf "/mit/scripts/deploy$scriptsdev/$deploy.tar.gz" 223 # This is the better version 224 225 if [ "$create_scripts_dir" = "" ]; then 226 create_scripts_dir=0 227 fi 228 229 if [ "$create_scripts_dir" -eq 1 ]; then 230 mkdir -p "$lroot/Scripts/$deploy" 231 fs sa "$lroot/Scripts/$deploy" system:anyuser none 232 fs sa "$lroot/Scripts/$deploy" system:authuser none 233 fs sa "$lroot/Scripts/$deploy" daemon.scripts write 234 fs sa "$lroot/Scripts/$deploy" system:scripts-security-upd write 235 fi 236 237 # xavid: use p to keep the same permissions as in the file 238 athrun scripts gtar zxpf "/mit/scripts/deploy$scriptsdev/$deploy.tar.gz" 222 239 files=`athrun scripts gfind . -mindepth 1 -maxdepth 1 | grep -v .admin` 223 240 numfiles=`echo "$files" | wc -l` … … 242 259 echo "== Installation complete! ==" 243 260 echo "You should now be able to access your new copy of $sname at" 244 echo "http:// scripts.mit.edu/~$lname/$addrend/"261 echo "http://$lname.scripts.mit.edu/$addrend/" 245 262 echo "(You can replace the http with https if you want to use encryption)" 246 263 echo "If you have trouble accessing it, feel free to contact"
Note: See TracChangeset
for help on using the changeset viewer.