diff --git a/livesupport/INSTALL b/livesupport/INSTALL new file mode 100644 index 000000000..5565dc49e --- /dev/null +++ b/livesupport/INSTALL @@ -0,0 +1,51 @@ +-------------------------------------------------------------------------------- + + Copyright (c) 2004 Media Development Loan Fund + + This file is part of the LiveSupport project. + http://livesupport.campware.org/ + To report bugs, send an e-mail to bugs@campware.org + + LiveSupport is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. + + LiveSupport is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with LiveSupport; if not, write to the Free Software + Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + + + Author : $Author: maroy $ + Version : $Revision: 1.1 $ + Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/INSTALL,v $ + +-------------------------------------------------------------------------------- + +For detailed installation instructions, see the doc/install.html document. + +For the impatient, do the following (make sure to run at least the +bin/install.sh script as root): + +wget http://ls-demo.campware.org/download/livesupport-.tar.bz2 +wget http://ls-demo.campware.org/download/livesupport-libraries-.tar.bz2 +tar xfj livesupport-.tar.bz2 +tar xfj livesupport-libraries-.tar.bz2 +cd livesupport- +make setup && make compile +./bin/install.sh -d /usr/local/livesupport -g apache +ln -s /usr/local/livesupport/var /var/www/livesupport + + +Then try the URL http://localhost/livesupport/htmlUI/var/html/ , +and log in using username: root, password: q. + + + +For more information, please visit http://livesupport.campware.org/ + diff --git a/livesupport/bin/install.sh b/livesupport/bin/install.sh index de6805f0b..b9af2f7ba 100755 --- a/livesupport/bin/install.sh +++ b/livesupport/bin/install.sh @@ -22,7 +22,7 @@ # # # Author : $Author: maroy $ -# Version : $Revision: 1.6 $ +# Version : $Revision: 1.7 $ # Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/bin/Attic/install.sh,v $ #------------------------------------------------------------------------------- #------------------------------------------------------------------------------- @@ -71,7 +71,7 @@ printUsage() echo " -P, --scheduler-port The port of the scheduler daemon to install" echo " [default: 3344]"; echo " -s, --dbserver The name of the database server host."; - echo " [default: same as host]"; + echo " [default: localhost]"; echo " -u, --dbuser The name of the database user to access the" echo " database. [default: livesupport]"; echo " -w, --dbpassword The database user password."; @@ -149,7 +149,7 @@ if [ "x$scheduler_port" == "x" ]; then fi if [ "x$dbserver" == "x" ]; then - dbserver=$hostname; + dbserver=localhost; fi if [ "x$database" == "x" ]; then @@ -184,6 +184,18 @@ echo " database user password: $dbpassword"; echo " apache daemon group: $apache_group"; echo "" +# check for the apache group to be a real group +group_tmp_file=/tmp/ls_group_check.$$ +touch $group_tmp_file +test_result=`chgrp $apache_group $group_tmp_file 2> /dev/null` +if [ $? != 0 ]; then + rm -f $group_tmp_file; + echo "Unable to use apache deamon group $apache_group."; + echo "Please check if $apache_group is a correct user group."; + exit 1; +fi +rm -f $group_tmp_file; + #------------------------------------------------------------------------------- # The details of installation