From 7747cb8b72454a36c3a91aa3b40e351784a03bab Mon Sep 17 00:00:00 2001 From: Eugeni Dodonov Date: Mon, 8 Feb 2010 14:07:35 +0000 Subject: loading settings from the base level --- cron-sh/security.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'cron-sh') diff --git a/cron-sh/security.sh b/cron-sh/security.sh index 9a2d19d..ce59a31 100755 --- a/cron-sh/security.sh +++ b/cron-sh/security.sh @@ -5,6 +5,13 @@ # the order in which they should be executed if [[ -f /etc/security/msec/security.conf ]]; then + # load settings from base level + BASE_LEVEL=$(sed -n 's/BASE_LEVEL=//p' /etc/security/msec/security.conf) + if [[ ! -f /etc/security/msec/level.$BASE_LEVEL ]]; then + echo "Error: base level $BASE_LEVEL not found" + exit 1 + fi + . /etc/security/msec/level.$BASE_LEVEL . /etc/security/msec/security.conf else echo "/etc/security/msec/security.conf don't exist." -- cgit v1.2.1