summaryrefslogtreecommitdiffstats
path: root/move
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-10-31 12:29:19 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-10-31 12:29:19 +0000
commit9849c563acb4883378d3112a7a46b0ebbf7588f7 (patch)
tree3efe3c8fc500d268f488acc29d76e6afb55124b9 /move
parent19f852f6c57d7f8c7e3efee50ba24c6f6327392b (diff)
downloaddrakx-9849c563acb4883378d3112a7a46b0ebbf7588f7.tar
drakx-9849c563acb4883378d3112a7a46b0ebbf7588f7.tar.gz
drakx-9849c563acb4883378d3112a7a46b0ebbf7588f7.tar.bz2
drakx-9849c563acb4883378d3112a7a46b0ebbf7588f7.tar.xz
drakx-9849c563acb4883378d3112a7a46b0ebbf7588f7.zip
use our just-added user instead of "mdk" user
Diffstat (limited to 'move')
-rw-r--r--move/move.pm11
1 files changed, 5 insertions, 6 deletions
diff --git a/move/move.pm b/move/move.pm
index 289b82027..5ef8282c6 100644
--- a/move/move.pm
+++ b/move/move.pm
@@ -94,20 +94,19 @@ Continue at your own risk."), formatError($@) ]) if $@;
run_program::run('/sbin/service', 'syslog', 'start'); #- otherwise minilogd will strike
run_program::run('killall', 'minilogd'); #- get rid of minilogd
- run_program::run('adduser', 'mdk');
-
- output('/var/run/console.lock', 'mdk');
- output('/var/run/console/mdk', 1);
+ my $username = $o->{users}[0]{name};
+ output('/var/run/console.lock', $username);
+ output("/var/run/console/$username", 1);
run_program::run('pam_console_apply');
if (fork()) {
sleep 1;
log::l("DrakX waves bye-bye");
- (undef, undef, my $uid, my $gid, undef, undef, undef, my $home, my $shell) = getpwnam('mdk');
+ (undef, undef, my $uid, my $gid, undef, undef, undef, my $home, my $shell) = getpwnam($username);
$( = $) = "$gid $gid";
$< = $> = $uid;
- $ENV{LOGNAME} = $ENV{USER} = 'mdk';
+ $ENV{LOGNAME} = $ENV{USER} = $username;
$ENV{HOME} = $home;
$ENV{SHELL} = $shell;
exec 'startkde';