Commit 36d21b04 authored by IKEDA Soji's avatar IKEDA Soji
Browse files

Fix the owner of created config file.

parent 12cb4b17
...@@ -88,7 +88,8 @@ sub _run { ...@@ -88,7 +88,8 @@ sub _run {
} }
umask $umask; umask $umask;
chown [getpwnam(Sympa::Constants::USER)]->[2], chown [getpwnam(Sympa::Constants::USER)]->[2],
[getgrnam(Sympa::Constants::GROUP)]->[2], $sympa_conf; [getgrnam(Sympa::Constants::GROUP)]->[2], $sympa_conf
if $UID == 0;
print $ofh $out; print $ofh $out;
close $ofh; close $ofh;
......
...@@ -62,6 +62,9 @@ sub _run { ...@@ -62,6 +62,9 @@ sub _run {
. "\n"; . "\n";
} }
umask $umask; umask $umask;
chown [getpwnam(Sympa::Constants::USER)]->[2],
[getgrnam(Sympa::Constants::GROUP)]->[2], $conf
if $UID == 0;
print $ofh Sympa::Tools::Data::format_config([@Sympa::ConfDef::params], print $ofh Sympa::Tools::Data::format_config([@Sympa::ConfDef::params],
filter => ($options->{output} // [qw(minimal)])); filter => ($options->{output} // [qw(minimal)]));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment