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 {
}
umask $umask;
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;
close $ofh;
......
......@@ -62,6 +62,9 @@ sub _run {
. "\n";
}
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],
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