summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/standalone')
-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;