diff options
author | Daouda Lo <daouda@mandriva.com> | 2004-03-03 17:37:43 +0000 |
---|---|---|
committer | Daouda Lo <daouda@mandriva.com> | 2004-03-03 17:37:43 +0000 |
commit | cf9ce2423a0560e39beeb7e811f54860a6baf490 (patch) | |
tree | b33da42185d4aef84bb1b3418d8a4c8ebfaa4efc | |
parent | a09953e7d4b314bf84322f929463df29d269a992 (diff) | |
download | mgaonline-cf9ce2423a0560e39beeb7e811f54860a6baf490.tar mgaonline-cf9ce2423a0560e39beeb7e811f54860a6baf490.tar.gz mgaonline-cf9ce2423a0560e39beeb7e811f54860a6baf490.tar.bz2 mgaonline-cf9ce2423a0560e39beeb7e811f54860a6baf490.tar.xz mgaonline-cf9ce2423a0560e39beeb7e811f54860a6baf490.zip |
- Please quit and do not autostart
-rwxr-xr-x | mdkonline | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -409,4 +409,11 @@ 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; } |