summaryrefslogtreecommitdiffstats
path: root/seaudit/seaudit-report-service.in
blob: d9235895ecac7f7114c15a7595f0c961a4dd3bf4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh
# shell script to run seaudit-report on STDIN
#

SEAUDITREPORT=@bindir@
OPTS="--stdin --malformed"

echo "Date Range: $LOGWATCH_DATE_RANGE"
echo "Detail Level: $LOGWATCH_DETAIL_LEVEL"
echo "Temp Dir: $LOGWATCH_TEMP_DIR"
echo "Debug Level: $LOGWATCH_DEBUG"

# execute the program with the specified options
${SEAUDITREPORT} ${OPTS} 

# program failed
if [ $? -ne 0 ]; then
	RC=$?
	echo >&2 "Failed while executing seaudit-report.\n"
	exit $RC
fi

# All done, exit ok
exit 0