From 69acefbd2a9a61da950f2e5fcfce99faeb4bda39 Mon Sep 17 00:00:00 2001 From: ArmandMeppa Date: Wed, 18 Dec 2024 15:44:30 +0100 Subject: [PATCH] fix(chore): add missing sed_alternative command --- scripts/uninstall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/uninstall.sh b/scripts/uninstall.sh index 3d2c418..09aae27 100644 --- a/scripts/uninstall.sh +++ b/scripts/uninstall.sh @@ -107,7 +107,7 @@ revert_ossec_conf() { local snort_tag="" if maybe_sudo grep -q "$snort_tag" "$ossec_conf"; then - maybe_sudo sed -i "/$snort_tag/,/<\/localfile>/d" "$ossec_conf" + maybe_sudo sed_alternative -i "/$snort_tag/,/<\/localfile>/d" "$ossec_conf" info_message "Reverted changes in $ossec_conf" else info_message "No Snort-related changes found in $ossec_conf"