aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/suricata/scripts/setup-app-layer.sh
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/suricata/scripts/setup-app-layer.sh')
-rwxr-xr-xframework/src/suricata/scripts/setup-app-layer.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/framework/src/suricata/scripts/setup-app-layer.sh b/framework/src/suricata/scripts/setup-app-layer.sh
index b24b5e61..2789f20d 100755
--- a/framework/src/suricata/scripts/setup-app-layer.sh
+++ b/framework/src/suricata/scripts/setup-app-layer.sh
@@ -37,9 +37,11 @@ function copy_template_file() {
echo "Creating ${dst}."
- sed -e "s/TEMPLATE/${protoname_upper}/g" \
+ sed -e '/TEMPLATE_START_REMOVE/,/TEMPLATE_END_REMOVE/d' \
+ -e "s/TEMPLATE/${protoname_upper}/g" \
-e "s/template/${protoname_lower}/g" \
- -e "s/Template/${protoname}/g" > ${dst} < ${src}
+ -e "s/Template/${protoname}/g" \
+ > ${dst} < ${src}
}
function copy_app_layer_templates {