summaryrefslogtreecommitdiffstats
path: root/mdkonline
diff options
context:
space:
mode:
authorDaouda Lo <daouda@mandriva.com>2004-03-03 17:37:43 +0000
committerDaouda Lo <daouda@mandriva.com>2004-03-03 17:37:43 +0000
commitcf9ce2423a0560e39beeb7e811f54860a6baf490 (patch)
treeb33da42185d4aef84bb1b3418d8a4c8ebfaa4efc /mdkonline
parenta09953e7d4b314bf84322f929463df29d269a992 (diff)
downloadmgaonline-cf9ce2423a0560e39beeb7e811f54860a6baf490.tar
mgaonline-cf9ce2423a0560e39beeb7e811f54860a6baf490.tar.gz
mgaonline-cf9ce2423a0560e39beeb7e811f54860a6baf490.tar.bz2
mgaonline-cf9ce2423a0560e39beeb7e811f54860a6baf490.tar.xz
mgaonline-cf9ce2423a0560e39beeb7e811f54860a6baf490.zip
- Please quit and do not autostart
Diffstat (limited to 'mdkonline')
-rwxr-xr-xmdkonline7
1 files changed, 7 insertions, 0 deletions
diff --git a/mdkonline b/mdkonline
index 6a39a942..34b5ed6f 100755
--- a/mdkonline
+++ b/mdkonline
@@ -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;
}