Package: dokuwiki Version: 0.0.20091225c-7 Severity: normal Tags: patch Hello myself,
Due to a mistake in the postinst, the plugins directory stays root:root even if
the user chose to allow write access from the web server in order to install
plugins from the web interface.
It is on a dpkg-statoverride invokation. As in the attached patch:
if ! dpkg-statoverride --list /var/lib/dokuwiki/plugins >/dev/null 2>&1;
then
dpkg-statoverride --update --add root www-data 0775
/var/lib/dokuwiki/plugins
should be replaced by:
if ! dpkg-statoverride --list /var/lib/dokuwiki/lib/plugins >/dev/null
2>&1; then
dpkg-statoverride --update --add root www-data 0775
/var/lib/dokuwiki/lib/plugins
Regards,
--
Tanguy
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'stable'), (50, 'unstable'), (1,
'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-trunk-686 (SMP w/1 CPU core)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages dokuwiki depends on:
ii debconf [debconf-2.0] 1.5.33 Debian configuration management sy
ii libphp-simplepie 1.2-1 RSS and Atom feed parsing in PHP
ii php-geshi 1.0.8.4-1 Generic Syntax Highlighter
ii php5 5.3.2-1 server-side, HTML-embedded scripti
ii ucf 3.0025 Update Configuration File: preserv
Versions of packages dokuwiki recommends:
ii imagemagick 8:6.6.0.4-2.1 image manipulation programs
ii php5-cli 5.3.2-1 command-line interpreter for the p
ii php5-gd 5.3.2-1 GD module for php5
dokuwiki suggests no packages.
-- debconf information:
* dokuwiki/system/configure-webserver: apache2
* dokuwiki/system/restart-webserver: true
* dokuwiki/wiki/policy: public
* dokuwiki/system/writeplugins: true
* dokuwiki/wiki/fullname: DokuWiki Administrator
* dokuwiki/system/documentroot: /dokuwiki
* dokuwiki/system/accessible: localhost only
* dokuwiki/wiki/title: Debian DokuWiki
dokuwiki/system/localnet: 10.0.0.0/24
* dokuwiki/wiki/superuser: admin
* dokuwiki/wiki/email: webmas...@localhost
dokuwiki/wiki/failpass:
* dokuwiki/wiki/acl: true
* dokuwiki/system/writeconf: true
* dokuwiki/system/purgepages: true
--
Tanguy Ortolo
--- postinst.old 2010-08-11 21:23:04.942155020 +0200
+++ postinst 2010-08-11 21:23:52.402147957 +0200
@@ -137,8 +137,8 @@
fi
db_get dokuwiki/system/writeplugins
if [ "$RET" = "true" ]; then
- if ! dpkg-statoverride --list /var/lib/dokuwiki/plugins >/dev/null 2>&1; then
- dpkg-statoverride --update --add root www-data 0775 /var/lib/dokuwiki/plugins
+ if ! dpkg-statoverride --list /var/lib/dokuwiki/lib/plugins >/dev/null 2>&1; then
+ dpkg-statoverride --update --add root www-data 0775 /var/lib/dokuwiki/lib/plugins
fi
fi
}
signature.asc
Description: Digital signature

