aboutsummaryrefslogtreecommitdiffstats
path: root/framework/src/suricata/scripts/setup-app-layer-logger.sh
diff options
context:
space:
mode:
Diffstat (limited to 'framework/src/suricata/scripts/setup-app-layer-logger.sh')
-rwxr-xr-xframework/src/suricata/scripts/setup-app-layer-logger.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/framework/src/suricata/scripts/setup-app-layer-logger.sh b/framework/src/suricata/scripts/setup-app-layer-logger.sh
index be32c393..13342412 100755
--- a/framework/src/suricata/scripts/setup-app-layer-logger.sh
+++ b/framework/src/suricata/scripts/setup-app-layer-logger.sh
@@ -38,9 +38,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_templates() {
@@ -62,7 +64,7 @@ function patch_makefile_am() {
ed -s ${filename} > /dev/null <<EOF
/output-json-template.c
t-
-s/template/${protoname_lower}/
+s/template/${protoname_lower}/g
w
EOF
}