diff options
author | Daouda Lo <daouda@mandriva.com> | 2004-03-16 20:41:41 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2004-03-16 20:41:41 +0000 |
commit | 97783f172543c3b0f6c899195bb3c74fd5182b72 (patch) | |
tree | fb09818482186e9113bd09d1b25b3caaf81ed040 /mdkonline | |
parent | bb5eb728cc5401cd2c552f05830426bbabb29e63 (diff) | |
download | mgaonline-97783f172543c3b0f6c899195bb3c74fd5182b72.tar mgaonline-97783f172543c3b0f6c899195bb3c74fd5182b72.tar.gz mgaonline-97783f172543c3b0f6c899195bb3c74fd5182b72.tar.bz2 mgaonline-97783f172543c3b0f6c899195bb3c74fd5182b72.tar.xz mgaonline-97783f172543c3b0f6c899195bb3c74fd5182b72.zip |
- do not clobber files
Diffstat (limited to 'mdkonline')
-rwxr-xr-x | mdkonline | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -199,6 +199,7 @@ sub checkErrors { } sub setEntryWithConf { my %t = getVarsFromSh($wideconf); + $t{MACHINE} ||= chomp_(`hostname`); foreach (qw(login machine)) { $o->{$_}->get_text or $o->{$_}->set_text($t{uc($_)}) } } sub sendConfig { @@ -411,11 +412,4 @@ MACHINE=$boxname COUNTRY=$country LASTCHECK=$d ); - my $user = $ENV{INITIAL_USER} || $ENV{USER}; - my $confpers = $user eq 'root' ? '/root/.mdkonline' : "/home/$user/.mdkonline"; - my ($uid, $gid) = (getpwnam($user) || $user, getgrnam($user) || $user); - output_with_perm $confpers, 644, - qq(AUTOSTART=TRUE -); - chown $uid, $gid, $confpers; } |