tags 717743 patch thanks Hi,
find attached a draft patch that should fix the issue by applying the slightly modified code used for lighttpd. Additional modifications have to be done for other maintainer scripts. Best regards, Andi
--- gosa.postinst_orig 2013-02-07 21:27:07.000000000 +0100 +++ gosa.postinst 2014-03-22 10:33:54.578236942 +0100 @@ -68,6 +63,40 @@ fi fi +# conf-available +if [ -d /etc/apache2/conf-available ] ; then + + # Copy GOsa configuration to conf-available directory /etc/apache2/conf-available + if [ ! -L /etc/apache2/conf-available/gosa.conf ]; then + + # Remove old instances of this file + if [ -f /etc/apache2/conf-available/gosa.conf ]; then + echo "Found old gosa apache configuration in /etc/apache2/conf-available/gosa.conf - moving it to /etc/apache2/conf-available/gosa.conf.orig ..." + echo "Please check for changes in /etc/apache2/conf-available/gosa.conf.orig if you modified this file!" + mv /etc/apache2/conf-available/gosa.conf /etc/apache2/conf-available/gosa.conf.orig + fi + + echo "Making /gosa available in /etc/apache2/conf-available" + + # Add GOsa include file + ln -s /etc/gosa/gosa-apache.conf /etc/apache2/conf-available/gosa.conf + fi + + if [ -e /usr/share/apache2/apache2-maintscript-helper ] ; then + . /usr/share/apache2/apache2-maintscript-helper + apache2_invoke enconf gosa + apache2_invoke enmod headers + fi + # Finally restart servers + if [ -x /usr/sbin/apache2 ]; then + if [ -x /usr/sbin/invoke-rc.d ]; then + invoke-rc.d apache2 reload + else + /etc/init.d/apache2 reload + fi + fi +fi + if [ -d /etc/lighttpd/conf-available ]; then # Copy GOsa configuration to conf-available directories /etc/lighttpd/conf-available