mirror of
https://github.com/xcat2/xcat-core.git
synced 2026-09-21 16:39:30 +00:00
fix(packaging): install the xcat logrotate config with sane permissions
The etc.tar.gz payload is unpacked into the buildroot and the resulting
etc/logrotate.d/xcat inherits whatever mode the build umask produced.
logrotate silently skips (and warns about) config files that are group- or
world-writable, so a loose umask can disable xCAT log rotation entirely.
chmod the file to 644 after extraction so the shipped config is always
honored.
Recovered from the unmerged lenovobuild branch (original cb8d671d).
Co-authored-by: Jarrod Johnson <10814490+jjohnson42@users.noreply.github.com>
This commit is contained in:
@@ -177,6 +177,7 @@ cd $RPM_BUILD_ROOT
|
||||
|
||||
%ifos linux
|
||||
tar zxf %{SOURCE8}
|
||||
chmod 644 etc/logrotate.d/xcat
|
||||
%endif
|
||||
|
||||
cd -
|
||||
|
||||
Reference in New Issue
Block a user