Skip to content

Commit

Permalink
fix(chore): add missing sed_alternative command
Browse files Browse the repository at this point in the history
  • Loading branch information
ArmandMeppa committed Dec 18, 2024
1 parent 915d0b9 commit 69acefb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/uninstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ revert_ossec_conf() {
local snort_tag="<!-- snort -->"

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"
Expand Down

0 comments on commit 69acefb

Please sign in to comment.