aboutsummaryrefslogtreecommitdiffstats
path: root/cron-sh/security.sh
diff options
context:
space:
mode:
authorFrederic Lepied <flepied@mandriva.com>2002-02-19 19:08:48 +0000
committerFrederic Lepied <flepied@mandriva.com>2002-02-19 19:08:48 +0000
commit2363ee2005c6a278d63cc8d73a7b25f0c21fac29 (patch)
tree5c12898fef285e4e134bdab5ff424e8c3ffb2872 /cron-sh/security.sh
parent8f42bde49936ad19417e4952747c5574475b020b (diff)
downloadmsec-2363ee2005c6a278d63cc8d73a7b25f0c21fac29.tar
msec-2363ee2005c6a278d63cc8d73a7b25f0c21fac29.tar.gz
msec-2363ee2005c6a278d63cc8d73a7b25f0c21fac29.tar.bz2
msec-2363ee2005c6a278d63cc8d73a7b25f0c21fac29.tar.xz
msec-2363ee2005c6a278d63cc8d73a7b25f0c21fac29.zip
use /var/lib/msec/msec/security.conf
Diffstat (limited to 'cron-sh/security.sh')
-rwxr-xr-xcron-sh/security.sh10
1 files changed, 7 insertions, 3 deletions
diff --git a/cron-sh/security.sh b/cron-sh/security.sh
index cabc812..4867819 100755
--- a/cron-sh/security.sh
+++ b/cron-sh/security.sh
@@ -1,11 +1,15 @@
#!/bin/bash
-if [[ ! -f /etc/security/msec/security.conf ]]; then
- echo "Can't access /etc/security/msec/security.conf."
+if [[ ! -f /var/lib/msec/msec/security.conf ]]; then
+ echo "Can't access /var/lib/msec/msec/security.conf."
exit 1
fi
-. /etc/security/msec/security.conf
+. /var/lib/msec/msec/security.conf
+
+if [ -r /etc/security/msec/security.conf ]; then
+ . /etc/security/msec/security.conf
+fi
if [ -r /etc/sysconfig/msec ]; then
. /etc/sysconfig/msec