From 94f79386aced19c5b837e8fe1d3e15efe6473468 Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Thu, 14 Feb 2019 13:37:56 +0100 Subject: [PATCH] new: [apache] allow to set ``core-rules`` in main service ``options``. --- apache/hooks/init | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apache/hooks/init b/apache/hooks/init index 4a5609f..ed6bb8e 100755 --- a/apache/hooks/init +++ b/apache/hooks/init @@ -21,3 +21,7 @@ if [ "$ssh_tunnel_cfg" ]; then apache_ssh_tunnel "$ssh_tunnel_cfg" fi +core_rules=$(options-get core-rules 2>/dev/null) || true +if [ "$core_rules" ]; then + apache_core_rules_add "$core_rules" +fi