Skip to content

Commit

Permalink
ci: suricatasc path fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonish committed Jan 9, 2025
1 parent aa83765 commit a456bad
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/live/dpdk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ if [ -f eve.json ]; then
rm eve.json
fi

if [ -e ./rust/target/release/suricatasc ]; then
SURICATASC=./rust/target/release/suricatasc
else
SURICATASC=./rust/debug/release/suricatasc
fi

RES=0

# set first rule file
Expand All @@ -47,8 +53,7 @@ echo "SURIPID $SURIPID"
cp .github/workflows/live/icmp2.rules suricata.rules

# trigger the reload
export PYTHONPATH=python/
python3 python/bin/suricatasc -c "reload-rules" /var/run/suricata/suricata-command.socket
${SURICATASC} -c "reload-rules" /var/run/suricata/suricata-command.socket

sleep 15

Expand All @@ -59,7 +64,7 @@ if [ $STATSCHECK = false ]; then
RES=1
fi

python3 python/bin/suricatasc -c "shutdown" /var/run/suricata/suricata-command.socket
${SURICATASC} -c "shutdown" /var/run/suricata/suricata-command.socket
wait $SURIPID

echo "done: $RES"
Expand Down

0 comments on commit a456bad

Please sign in to comment.