use su instead of runuser since logCmd has issues with runuser

This commit is contained in:
m0duspwnens
2023-07-10 15:19:41 -04:00
parent 5069d1163c
commit f22c61a0a2

View File

@@ -666,7 +666,7 @@ if ! [[ -f $install_opt_file ]]; then
title "Restarting Suricata to pick up the new rules"
logCmd "so-suricata-restart"
title "Downloading YARA rules"
logCmd "runuser -l socore '/usr/sbin/so-yara-download'"
logCmd "su socore -c '/usr/sbin/so-yara-download'"
title "Restarting Strelka to use new rules"
logCmd "so-strelka-restart"
fi