Package: gforge-common
Version: 4.7.1-1
Severity: important
Tags: patch

Hi Roland,

I got those errors because of a bashism in /usr/lib/gforge/bin/setup
Creating /etc/gforge/gforge.conf
[: 104: true: unexpected operator
[: 104: true: unexpected operator
[: 104: true: unexpected operator
SSL Enabled
Creating /etc/gforge/httpd.conf
Creating /etc/gforge/httpd.secrets
Creating /etc/gforge/local.inc
Creating other includes
Fixing past damage in mailing-lists...
Paramétrage de gforge (4.7.1-1) ...
Paramétrage de libphp-snoopy (1.2.4-1) ...
Paramétrage de gforge-plugin-scmcvs (4.7.1-1) ...
Calculating defaults
Reading defaults from /etc/gforge/gforge.conf
[: 101: false: unexpected operator
Creating /etc/gforge/gforge.conf
[: 104: true: unexpected operator
[: 104: true: unexpected operator
[: 104: true: unexpected operator
SSL Enabled
Creating /etc/gforge/httpd.conf
Creating /etc/gforge/httpd.secrets

The main error can easily be reproduct with this command:
sh -v /usr/lib/gforge/bin/setup.changed  -fhs -noapache -dovhost -system pgsql 
-nolisten80

'==' for equality is a bashism. I did this patch to fix the problem:

--- /usr/lib/gforge/bin/setup   2009-02-10 19:10:14.000000000 +0100
+++ /usr/lib/gforge/bin/setup.changed   2009-02-10 19:10:59.000000000 +0100
@@ -240,7 +240,7 @@ setupinout(){
                readdefault $CONFFILEIN.new
        fi

-       if [ "$interact" == "true" ]
+       if [ "$interact" = "true" ]
        then
                echo "Enter values or type enter for defaults:"
                # Here is the fun II
@@ -265,7 +265,7 @@ setupinout(){

        # Fill in the blanks
        EXCLUDEVHOST=' -not -name 55vhost'
-       if [ "$dovhost" == "true" ]
+       if [ "$dovhost" = "true" ]
        then
                EXCLUDEVHOST=''
        fi
@@ -294,12 +294,12 @@ setupinout(){
                $BINDIR/fill-in-the-blanks.pl $i $ETCDIR/`basename 
$i`.gforge-new $CONFFILEOUT
        done

-       if [ $listen80 == "false" ]
+       if [ $listen80 = "false" ]
        then
                rm -f $ETCDIR/00listen80.gforge-new
        fi

-       if [ $usessl == "false" -o -z "$(findkey)" -o -z "$(findcrt)" ]
+       if [ $usessl = "false" -o -z "$(findkey)" -o -z "$(findcrt)" ]
        then
                echo "SSL Disabled"
                rm -f $ETCDIR/[0-9][0-9]*.ssl.gforge-new

-- System Information:
Debian Release: 5.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-1-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to fr_FR.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages gforge-common depends on:
ii  adduser                   3.110          add and remove users and groups
ii  cpio                      2.9-14         GNU cpio -- a program to manage ar
ii  debconf [debconf-2.0]     1.5.24         Debian configuration management sy
ii  lockfile-progs            0.1.11-0.1     Programs for locking and unlocking
ii  php5-cli                  5.2.6.dfsg.1-3 command-line interpreter for the p
ii  python                    2.5.2-3        An interactive high-level object-o
ii  ucf                       3.0015         Update Configuration File: preserv

gforge-common recommends no packages.

gforge-common suggests no packages.

-- debconf information:
* gforge/shared/domain_name: localhost.localdomain
* gforge/shared/server_admin: webmas...@localhost.localdomain
  gforge/shared/system_name: GForge

Attachment: signature.asc
Description: Digital signature

Reply via email to