Bug#728199: fails to upgrade: ln: failed to create symbolic link '/etc/apache2/conf-available/dokuwiki.conf': File exists

2013-10-29 Thread Tanguy Ortolo
Hello again. I finally understood what caused this error. This is subtle and I was not expecting it! In the postinst, I test for the existence of /etc/apache2/conf-available/dokuwiki.conf, and I install it a a link to /etc/dokuwiki/apache.conf only if it does not. The problem is that the test

Bug#728199: fails to upgrade: ln: failed to create symbolic link '/etc/apache2/conf-available/dokuwiki.conf': File exists

2013-10-29 Thread Tanguy Ortolo
Thijs Kinkhorst, 2013-10-29 13:35+0100: dokuwiki fails to upgrade, and exits the upgrade with an error. Turning set -x on in postinst, this is what happens: + [ -e /etc/apache2/conf.d/dokuwiki.conf ] + [ -d /etc/apache2/conf-available -a ! -e /etc/apache2/conf-available/dokuwiki.conf ] + ln -s

Bug#728199: fails to upgrade: ln: failed to create symbolic link '/etc/apache2/conf-available/dokuwiki.conf': File exists

2013-10-29 Thread Thijs Kinkhorst
Package: dokuwiki Version: 0.0.20130510a-2 Severity: serious Hi, dokuwiki fails to upgrade, and exits the upgrade with an error. Turning set -x on in postinst, this is what happens: + [ -e /etc/apache2/conf.d/dokuwiki.conf ] + [ -d /etc/apache2/conf-available -a ! -e /etc/apache2/conf-available