Skip to content

Commit 58bfb98

Browse files
committed
fix: set 600 filemode for config file for rpm
1 parent 104e030 commit 58bfb98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packaging/rpm/SPECS/mamonsu.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export PYTHONPATH=%{buildroot}%{python3_sitelib}
3030
%{__mkdir} -p %{buildroot}/%{_sysconfdir}/logrotate.d
3131
%{__mkdir} -p %{buildroot}/%{_datarootdir}/%{name}
3232

33-
%{__install} -m 0644 -p packaging/conf/example_linux.conf %{buildroot}/%{_sysconfdir}/%{name}/agent.conf
33+
%{__install} -m 0600 -o mamonsu -g mamonsu -p packaging/conf/example_linux.conf %{buildroot}/%{_sysconfdir}/%{name}/agent.conf
3434
%{__install} -m 0644 -p packaging/conf/template_linux.xml %{buildroot}/%{_datarootdir}/%{name}/template.xml
3535
%{__install} -m 0644 -p examples/*.py %{buildroot}/%{_datarootdir}/%{name}/
3636
%{__install} -m 0755 -p %{SOURCE1} %{buildroot}/%{_sysconfdir}/init.d/%{name}

0 commit comments

Comments
 (0)