aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh/security_check.sh
diff options
context:
space:
mode:
Diffstat (limited to 'cron-sh/security_check.sh')
-rwxr-xr-xcron-sh/security_check.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/cron-sh/security_check.sh b/cron-sh/security_check.sh
index 6f73f72..87c7043 100755
--- a/cron-sh/security_check.sh
+++ b/cron-sh/security_check.sh
@@ -15,16 +15,14 @@ if [[ ${CHECK_SECURITY} != yes ]]; then
exit 0
fi
-SECURITY=`mktemp /tmp/secure.log`
+SECURITY=`mktemp /tmp/secure.XXXXXX`
SECURITY_LOG="/var/log/security.log"
-TMP=`mktemp /tmp/secure.tmp`
+TMP=`mktemp /tmp/secure.XXXXXX`
if [[ ! -d /var/log/security ]]; then
mkdir /var/log/security
fi
-rm -f ${SECURITY} ${TMP} >& /dev/null
-
### Functions ###
Syslog() {