Fix compatibility function for old daily_status_security_${name}_enable
variable PR: conf/183137 Reported by: Adam McDougall <mcdouga9 at egr msu edu> MFC after: 3 days
This commit is contained in:
parent
06dce123b6
commit
1f00510804
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=257361
@ -319,7 +319,7 @@ if [ -z "${source_periodic_confs_defined}" ]; then
|
||||
security_daily_compat_var() {
|
||||
local var=$1 dailyvar value
|
||||
|
||||
dailyvar=daily_status_security${#status_security}
|
||||
dailyvar=daily_status_security${var#security_status}
|
||||
periodvar=${var%enable}period
|
||||
eval value=\"\$$dailyvar\"
|
||||
[ -z "$value" ] && return
|
||||
@ -331,7 +331,7 @@ if [ -z "${source_periodic_confs_defined}" ]; then
|
||||
$periodvar=daily
|
||||
;;
|
||||
*)
|
||||
$var="$value"
|
||||
eval $var=\"$value\"
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user