Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nuxwin committed Jul 20, 2017
1 parent 9c9ffeb commit 84d763a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions autoinstaller/Functions.pm
Expand Up @@ -200,9 +200,12 @@ sub build
);

# Write configuration
local $UMASK = 027;
while( my ($name, $config) = each %confmap ) {
iMSCP::File->new( filename => "$main::{'SYSTEM_CONF'}/$name.conf" )->save( );
if ($name eq 'imscpOld') {
local $UMASK = 027;
iMSCP::File->new( filename => "$main::{'SYSTEM_CONF'}/$name.conf" )->save( );
}

tie my %config, 'iMSCP::Config', fileName => "$main::{'SYSTEM_CONF'}/$name.conf";
@config{ keys %{$config} } = values %{$config};
untie %config;
Expand Down

0 comments on commit 84d763a

Please sign in to comment.