Skip to content

Commit

Permalink
net-analyzer/suricata: fix in init script
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.3, Repoman-2.3.1
  • Loading branch information
Slawomir Lis committed Dec 29, 2016
1 parent 205f65e commit f3eaaf1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net-analyzer/suricata/files/suricata-3.2-init
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ else
fi
SURICATAUSER=${SURICATAUSER:-${SURICATA_USER}}
SURICATAGROUP=${SURICATAGROUP:-${SURICATA_GROUP}}
[ -e ${SURICATACONF} ] && SURICATAOPTS="${SURICATAOPTS} -c ${SURICATACONF}"
[ -e ${SURICATACONF} ] && SURICATAOPTS="-c ${SURICATACONF} ${SURICATAOPTS}"

description="Suricata IDS/IPS"
extra_commands="checkconfig dump"
Expand All @@ -47,7 +47,7 @@ checkconfig() {
checkpath -d /var/run/suricata
fi
if [ ${#SURICATALOGPATH} -gt 0 ]; then
SURICATALOGFILE=$( basename ${SURICATA_LOG_FILE} )
SURICATALOGFILE=$( basename ${SURICATALOGPATH} )
SURICATALOGFILE=${SURICATALOGFILE:-suricata.log}
SURICATALOGPATH=$( dirname ${SURICATALOGPATH} )
if [ ! -d "${SURICATALOGPATH}" ] ; then
Expand Down

0 comments on commit f3eaaf1

Please sign in to comment.