aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh
diff options
context:
space:
mode:
Diffstat (limited to 'cron-sh')
-rwxr-xr-xcron-sh/diff_check.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/cron-sh/diff_check.sh b/cron-sh/diff_check.sh
index 7588877..1441c49 100755
--- a/cron-sh/diff_check.sh
+++ b/cron-sh/diff_check.sh
@@ -3,13 +3,17 @@
# Written by Vandoorselaere Yoann, <yoann@mandrakesoft.com>
#
-if [[ -f /etc/security/msec/security.conf ]]; then
- . /etc/security/msec/security.conf
+if [[ -f /var/lib/msec/security.conf ]]; then
+ . /var/lib/msec/security.conf
else
- echo "/etc/security/msec/security.conf don't exist."
+ echo "/var/lib/msec/security.conf don't exist."
exit 1
fi
+if [[ -f /etc/security/msec/security.conf ]]; then
+ . /etc/security/msec/security.conf
+fi
+
if [[ ${CHECK_SECURITY} == no ]]; then
exit 0
fi