Package: dokuwiki
Version: 0.0.20061106-4
Severity: critical
Justification: breaks unrelated software

When purging or removing dokuwiki it breaks apache configuration in
the following way:

# invoke-rc.d apache2 reload
apache2: Syntax error on line 195 of /etc/apache2/apache2.conf: Could not open 
configuration file /etc/apache2/conf.d/dokuwiki.conf: No such file or directory
 failed!
invoke-rc.d: initscript apache2, action "reload" failed.

The reason is dokuwiki leaves a broken link in /etc/apache2/conf.d/

# ls -l /etc/apache2/conf.d/
total 4
-rw-r--r-- 1 root root 24 2007-03-26 18:39 charset
lrwxrwxrwx 1 root root 25 2007-03-26 18:54 dokuwiki.conf -> 
/etc/dokuwiki/apache.conf

(/etc/dokuwiki/apache.conf has been removed)

There are lines trying to deal with this in dokuwiki postrm but they
have been commented out:

# No need to handle the Web server in postrm
#if [ "$1" = "remove" ]; then
#    for srv in apache apache2 apache-ssl apache-perl; do
#       if [ -e /etc/$srv/httpd.conf ]; then
#           
#           # Remove dokuwiki from the apache configuration
#           rm -f /etc/$srv/conf.d/dokuwiki.conf
#           
#           # Restart apache
#           if which invoke-rc.d >/dev/null 2>&1; then
#               invoke-rc.d $srv force-reload
#           else
#               /etc/init.d/$srv force-reload
#           fi
#           
#
#
#
#       
#       fi
#    done
#fi

Actually, it seems there is need to handle Web server in postrm.

Thanks for your work on packaging dokuwiki,
Frédéric Lehobey

-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: sparc (sparc64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-sparc64
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)

Versions of packages dokuwiki depends on:
ii  apache2                       2.2.3-3.2  Next generation, scalable, extenda
ii  apache2-mpm-prefork [httpd-cg 2.2.3-3.2  Traditional model for Apache HTTPD
ii  debconf [debconf-2.0]         1.5.11     Debian configuration management sy
ii  php5                          5.2.0-8    server-side, HTML-embedded scripti
ii  ucf                           2.0018.1   Update Configuration File: preserv

Versions of packages dokuwiki recommends:
pn  imagemagick | php4-gd | php5- <none>     (no description available)
pn  php4-cli | php5-cli           <none>     (no description available)

-- debconf information:
* dokuwiki/system/documentroot: /dokuwiki
* dokuwiki/system/accessible: global
  dokuwiki/system/localnet: 10.0.0.0/24
* dokuwiki/webservers: apache2
* dokuwiki/system/purgepages: true

Reply via email to