summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2001-06-14 13:21:22 +0000
committerPascal Rigaux <pixel@mandriva.com>2001-06-14 13:21:22 +0000
commit3e14aa8de92b39f8a64b6af2ce64aad33b3e21df (patch)
tree90f8ac6e0e938f10a6b45d3b1fe2a4208222c450
parent90521022de7f69dd97bcbff55e966f767ceae437 (diff)
downloaddrakx-backup-do-not-use-3e14aa8de92b39f8a64b6af2ce64aad33b3e21df.tar
drakx-backup-do-not-use-3e14aa8de92b39f8a64b6af2ce64aad33b3e21df.tar.gz
drakx-backup-do-not-use-3e14aa8de92b39f8a64b6af2ce64aad33b3e21df.tar.bz2
drakx-backup-do-not-use-3e14aa8de92b39f8a64b6af2ce64aad33b3e21df.tar.xz
drakx-backup-do-not-use-3e14aa8de92b39f8a64b6af2ce64aad33b3e21df.zip
look for SECURE_LEVEL in /etc/profile before look in $ENV{SECURE_LEVEL},
otherwise you need re-sourcing.
-rwxr-xr-xperl-install/standalone/draksec5
1 files changed, 4 insertions, 1 deletions
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;