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 /etc/dokuwiki/apache.conf /etc/apache2/conf-available/dokuwiki.conf ln: failed to create symbolic link '/etc/apache2/conf-available/dokuwiki.conf': File exists dpkg: error processing dokuwiki (--configure): subprocess installed post-installation script returned error exit status 1 The code fails because /etc/apache2/conf.d/dokuwiki.conf, the link target, does not exist (it is removed in the same script) and therefore the -e on the link itself fails.
I do not understand how that is possible. The script checks that the directory /etc/apache2/conf-available exists and that the file /etc/apache2/conf-available/dokuwiki.conf /does not exist/, then fails to create a symlink /etc/apache2/conf-available/dokuwiki.conf because that files /already exists/???
So, you have a file named /etc/apache2/conf-available/dokuwiki.conf? What is it, a regular file or a symlink? Do you have any idea why it was created?
-- ,--. : /` ) Tanguy Ortolo <xmpp:tan...@ortolo.eu> | `-' Debian Developer <irc://irc.oftc.net/Tanguy> \_
signature.asc
Description: Digital signature