From 3e14aa8de92b39f8a64b6af2ce64aad33b3e21df Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 14 Jun 2001 13:21:22 +0000 Subject: look for SECURE_LEVEL in /etc/profile before look in $ENV{SECURE_LEVEL}, otherwise you need re-sourcing. --- perl-install/standalone/draksec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'perl-install') diff --git a/perl-install/standalone/draksec b/perl-install/standalone/draksec index fcb12ac75..da5aac5ea 100755 --- a/perl-install/standalone/draksec +++ b/perl-install/standalone/draksec @@ -46,9 +46,12 @@ delete @help{0,1,5} unless $::expert; begin: $::isEmbedded and kill USR2, $::CCPID; + +$secure_level = ${{ getVarsFromSh("/etc/profile") }}{SECURE_LEVEL} || $ENV{SECURE_LEVEL} || 2; + if (my $level = $in->ask_from_list('', _("Choose security level") . "\n\n" . join('', map { "$l{$_}: $help{$_}\n\n" } keys %l), - [ values %l ], $l{$ENV{SECURE_LEVEL}})) { + [ values %l ], $l{$secure_level})) { my $w = $in->wait_message('', _("Setting security level")); $in->suspend; -- cgit v1.2.1