Index: openacs-4/etc/install/checkout.sh =================================================================== RCS file: /usr/local/cvsroot/openacs-4/etc/install/checkout.sh,v diff -u -r1.8 -r1.9 --- openacs-4/etc/install/checkout.sh 14 Oct 2003 16:23:29 -0000 1.8 +++ openacs-4/etc/install/checkout.sh 3 Nov 2003 16:19:43 -0000 1.9 @@ -26,7 +26,6 @@ # Fetch config parameters serverroot=`get_config_param serverroot` aolserver_user=`get_config_param aolserver_user` -use_timesaver_files=`get_config_param use_timesaver_files` echo "$0: Starting checkout for server path $serverroot with config_file $config_file and dotlrn=$dotlrn" @@ -49,39 +48,34 @@ mkdir -p ${serverroot}-tmp cd ${serverroot}-tmp oacs_branch=`get_config_param oacs_branch` -if [ -z "$oacs_branch" ]; then - oacs_branch="HEAD" +if [ "$oacs_branch" == "HEAD"]; then + oacs_branch_switch="" +else + oacs_branch_switch="-r $oacs_branch" fi echo "$0: Checking out acs-core from branch $oacs_branch" cvs -q -d :pserver:anonymous:@openacs.org:/cvsroot login -cvs -q -z3 -d :pserver:anonymous@openacs.org:/cvsroot checkout -r $oacs_branch acs-core +cvs -q -z3 -d :pserver:anonymous@openacs.org:/cvsroot checkout $oacs_branch_switch acs-core mv ${serverroot}-tmp/openacs-4 ${serverroot} rmdir ${serverroot}-tmp if [ $dotlrn == "yes" ]; then # Checkout needed packages echo "$0: Checking out packages from branch $oacs_branch" cd ${serverroot}/packages - cvs -q -z3 -d :pserver:anonymous@openacs.org:/cvsroot co -r $oacs_branch dotlrn-prereq + cvs -q -z3 -d :pserver:anonymous@openacs.org:/cvsroot co $oacs_branch_switch dotlrn-prereq - # Copy short reference files to save time when installing datamodel - if parameter_true "$use_timesaver_files"; then - echo "$0: Copying timesaver files" - cp ${script_path}/ref-timezones-rules.sql \ - ${serverroot}/packages/ref-timezones/sql/common - cp ${script_path}/ref-timezones-data.sql \ - ${serverroot}/packages/ref-timezones/sql/common - fi - # Checkout .LRN dotlrn_branch=`get_config_param dotlrn_branch` - if [ -z "$dotlrn_branch" ]; then - dotlrn_branch="HEAD" - fi + if [ "$dotlrn_branch" == "HEAD"]; then + dotlrn_branch_switch="" + else + dotlrn_branch_switch="-r $dotlrn_branch" + fi echo "$0: Checking out .LRN from branch $dotlrn_branch" cvs -q -d :pserver:anonymous:@dotlrn.openacs.org:/dotlrn-cvsroot login cvs -q -z3 -d :pserver:anonymous@dotlrn.openacs.org:/dotlrn-cvsroot \ - co -r $dotlrn_branch dotlrn-core + co $dotlrn_branch_switch dotlrn-core fi echo $(date) > ${serverroot}/www/SYSTEM/checkout-date Fisheye: Tag 1.11 refers to a dead (removed) revision in file `openacs-4/etc/install/config.tcl'. Fisheye: No comparison available. Pass `N' to diff? Index: openacs-4/etc/install/install.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/etc/install/install.tcl,v diff -u --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ openacs-4/etc/install/install.tcl 3 Nov 2003 16:19:43 -0000 1.1 @@ -0,0 +1,187 @@ +####################################################################### +# +# Things you will probably want to inspect and change +# +####################################################################### + +# This is the name of your server (website). +# It will be used as the name of directories, the name of database users and/or tablespaces, etc. +set server "service0" + +# Server root directory. This is where all of the files for your server will live. +# Some people like this to be at /web/${server}, but we recommend the below standard setting. +set serverroot "/var/lib/aolserver/${server}" + +# The URL where your server will be accessible. This is used by the installation scripts to complete the installation. +set server_url "http://localhost:8000" + +# OS user and group that AOLserver runs as. We recommend that you create a new user for your server. +# If you do not want to do that, change the user name below +set aolserver_user "${server}" +set aolserver_group "web" + +# OpenACS configuration +set admin_email "postmaster@localhost" +set admin_username "admin" +set admin_first_names "Your" +set admin_last_name "Name" +set admin_password "openacsrocks" +set system_name "OpenACS" +set publisher_name "Yourname" + +# Should we automatically grab the OpenACS code from CVS? +# If not, you must have already unpacked a tar-ball in the server root directory specified above +set do_checkout "yes" + +# Which branch or symbolic tag should we use for the checkout +# For example, say "HEAD" to get the latest code, oacs-5-0-0 to get the 5.0.0 release. +set oacs_branch "HEAD" + +# Choose which database you will use - Oracle or PostgreSQL +set database "postgres" + +#---------------------------------------------------------------------- +# Database configuration - PostgreSQL +#---------------------------------------------------------------------- + +# Name of the user to use when connecting to the database +set pg_db_user "postgres" + +# Name of the PostgreSQL database. Will be created. +set pg_db_name ${server} + +# The host running PostgreSQL +set pg_host localhost + +# The port PostgreSQL is running on. Default PostgreSQL port is 5432. +set pg_port 5432 + +# The home directory of your PostgreSQL server. Type 'which psql' to find this. +set pg_bindir "/usr/local/pgsql/bin" + + + +#---------------------------------------------------------------------- +# Database configuration - Oracle +#---------------------------------------------------------------------- + +# The name of the Oracle user and tablespace. Will get created. +set oracle_user "${server}" + +# Password for the Oracle user +set oracle_password "${oracle_user}" + +# The system user account and password. We need this to create the tablespace and user above. +set system_user "system" +set system_user_password "manager" + + + + + + + + +####################################################################### +# +# Things you don't want to change if you're doing a standard install +# +####################################################################### + +# The path to the server's error log file, so we can look for errors during installation +set error_log_file "${serverroot}/log/error.log" + +# TCLWebTest home directory +set tclwebtest_dir "/usr/local/tclwebtest" + + +#---------------------------------------------------------------------- +# Settings for starting and stopping the server +#---------------------------------------------------------------------- + +# The default server control parameters use daemontools +set use_daemontools "true" + +# Do 'which svc' to find where the svc binary is installed +set svc_bindir "/usr/local/bin" + +# This is the directory which daemontools scans for services to supervies. +# Normally it's /service, though there has been talk about moving it to /var/lib/svacan. +# Do not use trailing slash. +set svscanroot "/service/${server}" + +# This is the directory under your server's root dir which we should link to from the +# svscanroot directory. +set svscan_sourcedir "$serverroot/etc/daemontools" + +# alternate server startup commands +# enable these commands to run without daemontools +set start_server_command "exec /usr/local/aolserver/bin/nsd-postgres -it $serverroot/etc/config.tcl -u $aolserver_user -g $aolserver_group" +set stop_server_command "killall nsd" +set restart_server_command "${stop_server_command}; ${start_server_command}" + +# Estimated number of seconds from the startup command is executed until the server is actually up +set startup_seconds 20 +# Estimated number of seconds from the shutdown command is executed until the server is actually down +set shutdown_seconds 10 + + + +#---------------------------------------------------------------------- +# OpenACS configuration options +#---------------------------------------------------------------------- + +# More OpenACS configuration options +set system_owner_email "$admin_email" +set admin_owner_email "$admin_email" +set host_administrator_email "$admin_email" +set outgoing_sender_email "$admin_email" +set new_registrations_email "$admin_email" + + + +#---------------------------------------------------------------------- +# Checking out code from CVS +#---------------------------------------------------------------------- + +# To use for example for moving away (saving) certain files under serverroot (see README) +set pre_checkout_script "" + +# To use for example for moving back certain (saved) files under serverroot (see README) +set post_checkout_script "" + + + +#---------------------------------------------------------------------- +# Install log and email alerting +#---------------------------------------------------------------------- + +# The keyword output by the install script to indicate +# that an email alert should be sent +set alert_keyword "INSTALLATION ALERT" +set send_alert_script "send-alert" +set install_output_file "${serverroot}/log/install-output.html" + +# Where all errors in the log file during installation are collected +set install_error_file "${serverroot}/log/install-log-errors" + + + +#---------------------------------------------------------------------- +# Installing .LRN +#---------------------------------------------------------------------- + +# dotLRN configuration +# should we install dotlrn? +set dotlrn "no" + +# Which tag should we checkout from? +set dotlrn_branch "HEAD" + +# Should basic demo setup of departments, classes, users, etc. be done? +set dotlrn_demo_data "no" +set dotlrn_users_data_file "users-data.csv" +set demo_users_password "guest" + +# Should links be crawled to search for broken pages? This doesn't quite work! +set crawl_links "no"