Changeset 1045


Ignore:
Timestamp:
Apr 2, 2009, 2:23:02 PM (15 years ago)
Author:
geofft
Message:
onathena: Uncommitted changes that enable *.scripts and ~/Scripts

Apparently we've been running this for a while. Some of the ~/Scripts
code (at least) is xavid's.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • locker/deploy/bin/onathena

    r1041 r1045  
    9696echo
    9797echo "Your new copy of $sname will appear on the web at a URL"
    98 echo "that starts with http://scripts.mit.edu/~$lname/"
     98echo "that starts with http://$lname.scripts.mit.edu/"
    9999echo "Please decide upon a complete URL and enter it below."
    100 echo "You must enter one or more characters after ~$lname/"
     100echo "You must enter one or more characters after mit.edu/"
    101101echo "The completed address must only contain a-z, 0-9, and /."
    102 printf "Desired address: http://scripts.mit.edu/~$lname/"
     102printf "Desired address: http://$lname.scripts.mit.edu/"
    103103read addrend
    104104
     
    107107        echo
    108108        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/"
    110110        echo "The completed address must only contain a-z, 0-9, and /."
    111111        exit 1
     
    190190fs sa . daemon.scripts write
    191191fs 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.txt
     192echo "This directory is necessary to store login sessions and other transient files for auto-installed packages from scripts.mit.edu." > DO_NOT_DELETE.txt
    193193mkdir -p "$lroot/web_scripts/$addrend"
    194194cd "$lroot/web_scripts/$addrend"
     
    207207echo "Unpacking $sname... (this step might take several minutes)"
    208208
     209# This version is deprecated, use create_scripts_dir instead
     210
    209211if [ "$create_dir" = "" ]; then
    210212  create_dir=0
     
    219221fi
    220222
    221 athrun scripts gtar zxf "/mit/scripts/deploy$scriptsdev/$deploy.tar.gz"
     223# This is the better version
     224
     225if [ "$create_scripts_dir" = "" ]; then
     226  create_scripts_dir=0
     227fi
     228
     229if [ "$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
     235fi
     236
     237# xavid: use p to keep the same permissions as in the file
     238athrun scripts gtar zxpf "/mit/scripts/deploy$scriptsdev/$deploy.tar.gz"
    222239files=`athrun scripts gfind . -mindepth 1 -maxdepth 1 | grep -v .admin`
    223240numfiles=`echo "$files" | wc -l`
     
    242259echo "== Installation complete! =="
    243260echo "You should now be able to access your new copy of $sname at"
    244 echo "http://scripts.mit.edu/~$lname/$addrend/"
     261echo "http://$lname.scripts.mit.edu/$addrend/"
    245262echo "(You can replace the http with https if you want to use encryption)"
    246263echo "If you have trouble accessing it, feel free to contact"
Note: See TracChangeset for help on using the changeset viewer.