Changelog: http://snortsam.net/news.html PR: 140881 Submitted by: olli hauer <ohauer@gmx.de> Approved by: maintainer timeout
17 lines
402 B
Bash
17 lines
402 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
|
|
ETCDIR=${ETCDIR:=%%ETCDIR%%}
|
|
|
|
# snortsam config file contain sensitive data like
|
|
# passwords needed to block IP's on the firewalls.
|
|
# Set permission of the config dir to 700 so only
|
|
# root:wheel can access this directory.
|
|
if [ "$2" = "POST-INSTALL" ]; then
|
|
if [ -d ${ETCDIR} ]; then
|
|
/usr/sbin/chown root:wheel ${ETCDIR}
|
|
/bin/chmod 700 ${ETCDIR}
|
|
fi
|
|
fi
|
|
|