gforge-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gforge-commits] gforge setup,1.34,1.35


From: cbayle
Subject: [Gforge-commits] gforge setup,1.34,1.35
Date: Mon, 25 Oct 2004 09:39:53 -0500

Update of /cvsroot/gforge/gforge
In directory db.perdue.net:/tmp/cvs-serv13858

Modified Files:
        setup 
Log Message:
Some changes for a better apache2 support


Index: setup
===================================================================
RCS file: /cvsroot/gforge/gforge/setup,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- setup       21 Oct 2004 22:02:05 -0000      1.34
+++ setup       25 Oct 2004 14:39:51 -0000      1.35
@@ -1,7 +1,7 @@
 #! /bin/sh
 
 usage() {
-       echo "$0: [-interact] [-help] [-debug] [-confdir confdir] [-input 
conffile] [-output conffile] [-httpdconf gforgehttpdconf] [-httpdsecrets 
gforgehttpdsecrets] [-localinc gforgelocalinc] [-example|-fhs] [-clean] 
[-noapache] [-dovhost] [-home homepath] [-group grouppath]"
+       echo "$0: [-interact] [-help] [-debug] [-confdir confdir] [-input 
conffile] [-output conffile] [-httpdconf gforgehttpdconf] [-httpdsecrets 
gforgehttpdsecrets] [-localinc gforgelocalinc] [-example|-fhs] [-clean] 
[-noapache] [-dovhost] [-home homepath] [-group grouppath] 
[-listen80|nolisten80]"
 }
 
 getval(){
@@ -10,21 +10,6 @@
 }
 
 computedefault(){
-       # look for which version of apache is installed
-       for apache_root_var in /etc/apache2 /etc/apache /etc/apache-ssl 
/etc/apache-perl ; do
-           if [ -d ${apache_root_var} ]; then
-               apache_root=${apache_root_var}
-               break
-           fi
-       done
-       # this removes Listen 80 from gforge httpd.conf for apache2 
-       # because it's already enabled and 
-       if [ ${apache_root} = '/etc/apache2' ] ; then
-           apache_listen80='#Listen 80 #apache2 already listens on port 80'
-       else
-           apache_listen80='Listen 80'
-       fi
-
        echo "Calculating defaults"
        # This is used to make a default working gforge.conf
        DEFAULTsystem_name=MyGForge
@@ -110,8 +95,8 @@
        DEFAULTsys_localinc=$ETCDIR/local.inc
        DEFAULTsys_jabber_pass=$(dd if=/dev/urandom count=256 bs=1 2> /dev/null 
| md5sum | cut -b1-8)
        DEFAULTsys_plugins_path=/usr/lib/gforge/plugins/
-       DEFAULTapache_root=${apache_root}
-       DEFAULTapache_listen80=${apache_listen80}
+       DEFAULTsys_sslcrt=/etc/apache/ssl.crt/server.crt
+       DEFAULTsys_sslkey=/etc/apache/ssl.key/server.key
        #
        # TODO
        #usr_lib_gforge=$GFGDIR
@@ -186,6 +171,11 @@
                $BINDIR/fill-in-the-blanks.pl $i $ETCDIR/`basename 
$i`.gforge-new $CONFFILEOUT
        done
        
+       if [ $listen80 == false ]
+       then
+               rm -f $ETCDIR/00listen80.gforge-new
+       fi
+
        echo "Creating $HTTPDCONF"
        ls $ETCDIR/[0-9][0-9]*.gforge-new | sort | xargs cat > $HTTPDCONF
        rm $ETCDIR/[0-9][0-9]*.gforge-new
@@ -260,6 +250,7 @@
 noapache=false
 database=env
 dovhost=false
+listen80=true
 
 while [ $# -ne 0 ]
 do
@@ -330,6 +321,12 @@
                -dovhost )
                        dovhost=true
                        ;;
+               -listen80 )
+                       listen80=true
+                       ;;
+               -nolisten80 )
+                       listen80=false
+                       ;;
                -example )
                        shift
                        CONFFILEIN=$ETCDIR/gforge.conf.example





reply via email to

[Prev in Thread] Current Thread [Next in Thread]