Index: openacs-4/etc/install/install.sh =================================================================== RCS file: /usr/local/cvsroot/openacs-4/etc/install/install.sh,v diff -u -r1.41 -r1.42 --- openacs-4/etc/install/install.sh 23 Feb 2004 15:49:14 -0000 1.41 +++ openacs-4/etc/install/install.sh 24 Feb 2004 10:47:59 -0000 1.42 @@ -212,6 +212,7 @@ install_xml_file=`get_config_param install_xml_file` tclwebtest_scripts=`get_config_param tclwebtest_scripts` do_tclapi_testing=`get_config_param do_tclapi_testing` +report_scp_target=`get_config_param report_scp_target` # If pre/post checkout scripts have been provided, check that they can # be executed @@ -604,35 +605,35 @@ # Warn about errors in the HTML returned from the server ./warn-if-installation-errors.sh `get_config_param install_output_file` -###################################################################### -# -# Generate an XML report -# -###################################################################### + ###################################################################### + # + # Generate an XML report + # + ###################################################################### -xmlreportfile=$script_path/$HOSTNAME-$server-installreport.xml -echo "" > $xmlreportfile -echo " $(uname -a)" >> $xmlreportfile -echo " $database" >> $xmlreportfile -if [ $database == "postgres" ]; then - # Postgres - echo " $(${pg_bindir}/psql --version)" >> $xmlreportfile -fi - #Oracle - #TODO: Oracle version number + xmlreportfile=$script_path/$HOSTNAME-$server-installreport.xml + echo "" > $xmlreportfile + echo " $(uname -a)" >> $xmlreportfile + echo " $database" >> $xmlreportfile + if [ $database == "postgres" ]; then + # Postgres + echo " $(${pg_bindir}/psql --version)" >> $xmlreportfile + fi + + #TODO: Oracle version number -echo " $(/usr/local/aolserver/bin/nsd -V)" >> $xmlreportfile -echo " $server_url" >> $xmlreportfile -echo " $HOSTNAME" >> $xmlreportfile -echo " $(get_config_param oacs_branch)" >> $xmlreportfile -echo " $(get_config_param system_name)" >> $xmlreportfile -echo " $admin_email" >> $xmlreportfile -echo " $admin_password" >> $xmlreportfile -echo " $installation_start_time" >> $xmlreportfile -echo " $(date +%s)" >> $xmlreportfile -echo " $(date)" >> $xmlreportfile -echo " $script_path" >> $xmlreportfile -echo "" >> $xmlreportfile + echo " $(/usr/local/aolserver/bin/nsd -V)" >> $xmlreportfile + echo " $server_url" >> $xmlreportfile + echo " $HOSTNAME" >> $xmlreportfile + echo " $(get_config_param oacs_branch)" >> $xmlreportfile + echo " $(get_config_param system_name)" >> $xmlreportfile + echo " $admin_email" >> $xmlreportfile + echo " $admin_password" >> $xmlreportfile + echo " $installation_start_time" >> $xmlreportfile + echo " $(date +%s)" >> $xmlreportfile + echo " $(date)" >> $xmlreportfile + echo " $script_path" >> $xmlreportfile + echo "" >> $xmlreportfile # Report the time at which we were done echo "$(date): Finished (re)installing $serverroot. @@ -641,4 +642,9 @@ admin email : $admin_email admin password: $admin_password ######################################################################" + + if [ -n "$report_scp_target" ]; then + echo "$(date): Copying xml report to $report_scp_target" + scp $xmlreportfile $report_scp_target + fi fi