Package: dokuwiki
Version: 0.0.20120125-1
Severity: minor
Tags: patch

Hi,

If you install dokuwiki with the perms by default 
(i.e. /etc/dokuwiki without writing perms for www-data), you get this error when
you visit dokuwiki site: 

Writing /etc/dokuwiki/plugins.local.php failed

This is caused because this file doesn't exist and www-data can't create
it. 

Creating a blank plugins.local.php file fixes this problem (patch
attached). Maybe it would be better to create it with comments about
what this file is for.

Thaks for your work!
diff -Nru dokuwiki-0.0.20120125/debian/rules dokuwiki-0.0.20120125/debian/rules
--- dokuwiki-0.0.20120125/debian/rules	2012-01-26 22:03:02.000000000 +0100
+++ dokuwiki-0.0.20120125/debian/rules	2012-03-21 13:54:22.000000000 +0100
@@ -21,6 +21,8 @@
 	# Remove Flash source (useless) and bytecode (violates Policy)
 	rm -rf $(DESTDIR)/usr/share/dokuwiki/lib/_fla
 	rm -rf $(DESTDIR)/usr/share/dokuwiki/lib/exe/multipleUpload.swf
+	# Create plugins.local.php 
+	touch $(DESTDIR)/etc/dokuwiki/plugins.local.php
 
 override_dh_fixperms:
 	dh_fixperms

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to