+apache2-cn (2.2-4) stable; urgency=low
+
+ * debian/postinst - brisanje zastarjele Include linije iz
+ konfiguracijske datoteke /etc/apache2/apache2.conf, linija:
+ Include /etc/apache2/sites-enabled/[^.#]* (rijeseno: #3926)
+
+ -- Dragan Dosen <ddosen@ffzg.hr> Tue, 2 Sep 2008 16:35:39 +0200
+
apache2-cn (2.2-3) stable; urgency=low
* Detekcija apache2-cn/sarge konfiguracije (rijeseno: #3160).
done
+# Check and remove obsolete "Include /etc/apache2/sites-enabled/[^.#]*" from
+# /etc/apache2/apache2.conf.
+#
+if egrep -iq "^[[:space:]]*Include[[:space:]]+\/etc\/apache2\/sites-enabled\/\[\^\.\#\]\*$" "$CONF"; then
+
+ cp_echo "CN: Fixing obsolete Include line in $CONF."
+ CONFTMP=`mktemp $CONF.tmp.XXXXXX`
+ sed -r "/^[[:space:]]*Include[[:space:]]+\/etc\/apache2\/sites-enabled\/\[\^\.\#\]\*$/Id" \
+ "$CONF" > "$CONFTMP"
+
+ if ! egrep -iq "^[[:space:]]*Include[[:space:]]+\/etc\/apache2\/sites-enabled\/$" "$CONFTMP"; then
+ echo "Include /etc/apache2/sites-enabled/" >> "$CONFTMP"
+ fi
+
+ cp_mv "$CONFTMP" "$CONF"
+ need_restart=1
+fi
+
+
# Start Apache2 web server on boot?
# This will enable Apache2 in /etc/default/apache2 file.
#