aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh/security.sh
diff options
context:
space:
mode:
Diffstat (limited to 'cron-sh/security.sh')
-rwxr-xr-xcron-sh/security.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/cron-sh/security.sh b/cron-sh/security.sh
index 17ebb4a..9b4040e 100755
--- a/cron-sh/security.sh
+++ b/cron-sh/security.sh
@@ -133,7 +133,9 @@ if [[ -f ${CHKROOTKIT_TODAY} ]]; then
mv -f ${CHKROOTKIT_TODAY} ${CHKROOTKIT_YESTERDAY}
fi
-netstat -pvlA inet,inet6 2> /dev/null > ${OPEN_PORT_TODAY};
+if [[ ${CHECK_OPEN_PORT} == yes ]]; then
+ netstat -pvlA inet,inet6 2> /dev/null > ${OPEN_PORT_TODAY};
+fi
ionice -c3 -p $$