+mod-security-cn (2.8.0+2) stable; urgency=low
+
+ * Nacin aktivacije ModSecurity modula u debian/postinst.
+
+ -- Dragan Dosen <Dragan.Dosen@CARNet.hr> Fri, 15 Jul 2016 14:11:23 +0200
+
mod-security-cn (2.8.0+1) stable; urgency=low
* Prva inacica paketa za Debian jessie distribuciju.
. /usr/share/apache2/apache2-maintscript-helper
modsecurity_enable() {
- cp_echo "CN: Enabling $PKG configuration for Apache2."
return 0
}
else
trap cleanup 0 1 2 15
+# Enable ModSecurity and unique_id Apache2 modules.
+#
+if modsecurity_enable; then
+ apache2_invoke enmod security2
+fi
+
+
# Remove obsolete symbolic link.
#
if [ "`readlink -q -m /etc/apache2/conf.d/$PKG.conf`" = "$MODSECCONF" ]; then
fi
if [ -f "$out" ]; then rm -f $out; fi
+fi
- # Enable ModSecurity configuration.
- if [ ! -e "$MODSECLNK" ]; then
- ln -fs "$MODSECCONF" "$MODSECLNK"
- fi
- if modsecurity_enable; then
- apache2_invoke enmod security2
- apache2_invoke enconf security2-cn
- fi
+
+# Enable ModSecurity configuration.
+#
+if [ ! -e "$MODSECLNK" ]; then
+ ln -fs "$MODSECCONF" "$MODSECLNK"
+fi
+if modsecurity_enable; then
+ cp_echo "CN: Enabling $PKG configuration for Apache2."
+ apache2_invoke enconf security2-cn
fi
db_stop || true