Bug#794933: apache2-suexec-custom: prompting due to modified conffiles which were not modified by the user: /etc/apache2/conf-available/security.conf
> AFAICS, this happens when one upgrades from wheezy from a state where
> only apache2.2-common is installed but not apache2. There is a bug in
> apache2's preinst in jessie that makes it not recognize this case and
> not execute the conffile handling.
>
> While I think I have a fix, I am not not sure that I want to change
> the upgrade logic in a stable point release.
FTR, attached is the diff I meant (redone from memory and not re-tested).
diff --git a/debian/apache2.preinst b/debian/apache2.preinst
index ed5a382..1adc647 100644
--- a/debian/apache2.preinst
+++ b/debian/apache2.preinst
@@ -49,8 +49,9 @@ obsolete_conffile_exists()
fi
done
- for CONFFILE in $MOVED_CONFFILES_IN ; do
- if [ -e "/etc/apache2/conf.d/$CONFFILE" ] ; then
+ for CONFFILE in $MOVED_CONFFILES ; do
+ CONFFILE=$( echo "$CONFFILE" | cut -d: -f1 )
+ if [ -e "$CONFFILE" ] ; then
return 0
fi
done
Reply to: