diff options
Diffstat (limited to 'mdkonline')
-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; } |