From 681fec3a84d69616b94297092a08641e29b63361 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 20 Mar 2008 17:41:10 +0000 Subject: allow to ask both root and user accounts in the same step --- perl-install/standalone/finish-install | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'perl-install/standalone/finish-install') diff --git a/perl-install/standalone/finish-install b/perl-install/standalone/finish-install index 84bda2e53..e2a716927 100755 --- a/perl-install/standalone/finish-install +++ b/perl-install/standalone/finish-install @@ -99,9 +99,11 @@ sub ask_authentication() { } } +#- USERS=with_root: asks both root and user accounts sub ask_users() { my $users = []; - any::ask_user($in, $users, $security); + my $ask_root = to_bool(lc(get_conf('USERS')) eq 'with_root'); + any::ask_user_and_root($in, $ask_root, $users, $security); my $old_user = get_conf('USER_RENAME_FROM'); my $old_autologin; if (@$users && $old_user) { -- cgit v1.2.1