- Timestamp:
- Jun 11, 2011, 11:21:38 PM (14 years ago)
- Location:
- trunk/locker
- Files:
-
- 21 edited
- 7 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/locker
- Property svn:mergeinfo changed
-
trunk/locker/bin
-
trunk/locker/bin/cronload
r463 r1901 1 1 #!/bin/sh 2 3 usage="Usage \"$0 [-l lockername] [-h] crontab\"" 4 while getopts "l:h" options; do 5 case $options in 6 l ) lname=$OPTARG;; 7 h ) echo "$usage"; exit 0;; 8 * ) echo "$usage"; exit 1;; 9 esac 10 done 11 shift `expr $OPTIND - 1` 12 if [ -z "$1" ]; then 13 echo "$usage" 14 exit 1 15 fi 2 16 3 17 echo "This program should print your new crontab below." … … 6 20 echo 7 21 22 8 23 cwd=`pwd` 9 lname=`perl -e "\\\$temp = \"$cwd\"; \\\$temp =~ /\\\/([^\\\/]+)\\\/cron_scripts/; print \\\$1"` 24 if [ -z "$lname" ]; then 25 lname=`perl -e "\\\$temp = \"$cwd\"; \\\$temp =~ /\\\/([^\\\/]+)\\\/cron_scripts/; print \\\$1"` 26 fi 27 if [ -z "$lname" ]; then 28 echo "ERROR: Could not detect locker name. Make sure to run" 29 echo "cronload from within /mit/lockername/cron_scripts/" 30 echo "(or pass the -l lockername option)" 31 exit 1 32 fi 10 33 athrun scripts scripts-ssh "$lname" /usr/local/bin/cronload "$1" "$cwd" 2>/dev/null 34 if ! grep -q "^MAILTO=" "$1"; then 35 echo "WARNING: You have no MAILTO= variable set. This means any" 36 echo "cron errors will go to $lname@scripts.mit.edu (your mail_scripts" 37 echo "account), which is almost certainly not what you want!" 38 echo "Please add a MAILTO= line, e.g., MAILTO=${EMAIL:-${ATHENA_USER:-$USER}@mit.edu}," 39 echo "to your crontab. If you do not want to receive errors, set" 40 echo 'MAILTO="".' 41 fi -
trunk/locker/bin/crontab
-
Property
svn:mergeinfo
set to
(toggle deleted branches)
/branches/locker-dev/locker/bin/crontab merged eligible /branches/fc11-dev/locker/bin/crontab 1121-1258
r1515 r1901 9 9 # (can be useful for debugging) 10 10 # You can always redirect the output of individual commands to /dev/null 11 MAILTO=" SCRIPTS_USER@mit.edu"11 MAILTO="ATHENA_USER@mit.edu" 12 12 # If you do not want to receive any mail from cron, use the line below instead 13 13 #MAILTO="" … … 22 22 # | | | | | 23 23 # | | | | ----- day of week (0 - 6) (Sunday=0) 24 # | | 24 # | | | ------- month (1 - 12) 25 25 # | | --------- day of month (1 - 31) 26 26 # | ----------- hour (0 - 23) -
Property
svn:mergeinfo
set to
(toggle deleted branches)
-
trunk/locker/bin/scripts-mediawiki
r1404 r1901 2 2 3 3 sname="MediaWiki" 4 deploy="mediawiki $scriptsstar"4 deploy="mediawiki" 5 5 prompt_username=1 6 6 wizard="mediawiki" 7 . /mit/scripts/deploy$scriptsdev/bin/onathena $scriptsstar7 . /mit/scripts/deploy$scriptsdev/bin/onathena -
trunk/locker/bin/scripts-remove
- Property svn:mergeinfo deleted
-
trunk/locker/bin/scripts-start
- Property svn:mergeinfo deleted
-
trunk/locker/bin/scripts-wordpress
r1404 r1901 2 2 3 3 sname="WordPress" 4 deploy="wordpress $scriptsstar"4 deploy="wordpress" 5 5 prompt_password=0 6 6 wizard="wordpress" 7 . /mit/scripts/deploy$scriptsdev/bin/onathena $scriptsstar7 . /mit/scripts/deploy$scriptsdev/bin/onathena -
trunk/locker/bin/signup-cron
r1087 r1901 10 10 fs sa /mit/$lname/cron_scripts daemon.scripts write 11 11 DATE=`date` 12 sed '/SCRIPTS_USER/s//'"$lname"'/g' /mit/scripts/deploy/crontab | sed '/SCRIPTS_DATE/s//'"$DATE"'/g' > /mit/$lname/cron_scripts/crontab 12 signupuser=`echo "$principal" | sed 's/[/@].*$//'` 13 sed '/SCRIPTS_USER/s//'"$lname"'/g' /mit/scripts/bin$scriptsdev/crontab | sed '/ATHENA_USER/s//'"$signupuser"'/g' | sed '/SCRIPTS_DATE/s//'"$DATE"'/g' > /mit/$lname/cron_scripts/crontab 14 echo "By default, output from cron jobs for the $lname locker will be mailed" 15 echo "to $signupuser@mit.edu. You should edit /mit/$lname/cron_scripts/crontab" 16 echo "to change this and set up your cron jobs." 13 17 success "the cron script service" "The directory /mit/$lname/cron_scripts has been created." 14 18 else -
trunk/locker/bin/signup-mail
r1087 r1901 9 9 fs sa /mit/$lname/mail_scripts system:authuser none 10 10 fs sa /mit/$lname/mail_scripts daemon.scripts read 11 signupuser=`echo "$principal" | sed 's/ @.*$//'`11 signupuser=`echo "$principal" | sed 's/[/@].*$//'` 12 12 sed /SCRIPTS_USER/s//$signupuser/ /mit/scripts/bin/procmailrc > /mit/$lname/mail_scripts/procmailrc 13 13 echo "By default, mail sent to $lname@scripts.mit.edu will be forwarded to" -
trunk/locker/bin/signup-minimal
- Property svn:mergeinfo deleted
-
trunk/locker/bin/signup-sql
- Property svn:mergeinfo deleted
-
trunk/locker/deploy/bin
- Property svn:mergeinfo changed
/branches/locker-dev/locker/deploy/bin merged: 1556,1566-1568,1774,1805-1806,1837,1846-1847 /branches/fc11-dev/locker/deploy/bin removed
- Property svn:mergeinfo changed
-
trunk/locker/deploy/bin/django
- Property svn:mergeinfo changed
/branches/locker-dev/locker/deploy/bin/django merged: 1806,1837,1847
r1775 r1901 39 39 print HTACCESS <<EOF; 40 40 RewriteEngine On 41 42 RewriteRule ^\$ index.fcgi/ [QSA,L] 43 41 44 RewriteCond %{REQUEST_FILENAME} !-f 42 45 RewriteCond %{REQUEST_FILENAME} !-d … … 47 50 48 51 chdir "/mit/$USER/Scripts/django/"; 49 system qw{django-admin startproject}, $name;52 system(qw{django-admin startproject}, $name)==0 or die "\nFailed to create app.\n\n"; 50 53 chdir "$name"; 51 54 - Property svn:mergeinfo changed
-
trunk/locker/deploy/bin/onathena
r1693 r1901 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 -
trunk/locker/deploy/bin/onserver.pm
r1217 r1901 11 11 use URI; 12 12 our @ISA = qw(Exporter); 13 our @EXPORT = qw(setup totmp fetch_uri print_login_info press_enter $server $tmp $USER $HOME $s name $deploy $addrend $base_uri $ua $admin_username $requires_sql $addrlast $sqlhost $sqluser $sqlpass $sqldb $admin_password $scriptsdev $human $email);13 our @EXPORT = qw(setup totmp fetch_uri print_login_info press_enter $server $tmp $USER $HOME $scriptsdir $sname $deploy $addrend $base_uri $ua $admin_username $requires_sql $addrlast $sqlhost $sqluser $sqlpass $sqldb $admin_password $scriptsdev $human $email); 14 14 15 15 our $server = "scripts.mit.edu"; 16 16 17 our ($tmp, $USER, $HOME, $s name, $deploy, $addrend, $base_uri, $ua, $admin_username, $requires_sql, $addrlast, $sqlhost, $sqluser, $sqlpass, $sqldb, $admin_password, $scriptsdev, $human, $email);17 our ($tmp, $USER, $HOME, $scriptsdir, $sname, $deploy, $addrend, $base_uri, $ua, $admin_username, $requires_sql, $addrlast, $sqlhost, $sqluser, $sqlpass, $sqldb, $admin_password, $scriptsdev, $human, $email); 18 18 19 19 $tmp = ".scripts-tmp"; … … 77 77 $USER = $ENV{USER}; 78 78 $HOME = $ENV{HOME}; 79 $scriptsdir = $HOME; 80 $scriptsdir =~ s/\/Scripts$//; 81 $scriptsdir .= "/Scripts"; 79 82 80 83 ($sname, $deploy, $addrend, $admin_username, $requires_sql, $scriptsdev, $human) = @ARGV; -
trunk/locker/deploy/bin/rails
- Property svn:mergeinfo changed
/trunk/locker/deploy/bin/rails removed
- Property svn:mergeinfo changed
-
trunk/locker/deploy/bin/trac
- Property svn:mergeinfo changed
/branches/locker-dev/locker/deploy/bin/trac merged: 1223,1262,1512,1548,1556,1846-1847
r1791 r1901 54 54 $cfg->newval('components', 'webadmin.*', 'enabled'); 55 55 $cfg->newval('components', 'tracext.git.*', 'enabled') if $repotype eq "git"; 56 $cfg->newval('components', 'tracext.hg.*', 'enabled') if $repotype eq "hg"; 56 57 $cfg->RewriteConfig(); 57 58 - Property svn:mergeinfo changed
-
trunk/locker/deploy/bin/turbogears
- Property svn:mergeinfo deleted
-
trunk/locker/deploy/trac/trac.fcgi
r1528 r1901 2 2 3 3 import os, os.path, sys 4 from trac.web import fcgi_frontend 4 from trac.web.main import dispatch_request 5 from trac.web._fcgi import WSGIServer 5 6 import urlparse 6 7 … … 38 39 env.log.exception(e) 39 40 if env.needs_upgrade(): 40 fcgi_frontend._fcgi.WSGIServer(send_upgrade_message).run()41 WSGIServer(send_upgrade_message).run() 41 42 sys.exit(0) 42 43 if hasattr(trac.env, 'env_cache'): … … 65 66 referrer.path, referrer.query, referrer.fragment)) 66 67 67 return fcgi_frontend.dispatch_request(environ, start_response)68 return dispatch_request(environ, start_response) 68 69 69 fcgi_frontend._fcgi.WSGIServer(my_dispatch_request).run()70 WSGIServer(my_dispatch_request).run() -
trunk/locker/sbin
- Property svn:mergeinfo deleted
-
trunk/locker/sql/bin/save-password
- Property svn:mergeinfo changed
/branches/locker-dev/locker/sql/bin/save-password merged: 1414,1847
- Property svn:mergeinfo changed
Note: See TracChangeset
for help on using the changeset viewer.