Use tmpfiles macro

Currently this will always run even if we're not booted via systemd;
I saw error spew when doing an rpm-ostree build.  The systemd
macro silences errors.
This commit is contained in:
Colin Walters 2018-07-30 20:01:11 +00:00 committed by Andreas Schneider
parent 3bf028cf0b
commit 14849e6974
1 changed files with 1 additions and 1 deletions

View File

@ -1155,7 +1155,7 @@ getent group printadmin >/dev/null || groupadd -r printadmin || :
%post common
/sbin/ldconfig
/usr/bin/systemd-tmpfiles --create %{_tmpfilesdir}/samba.conf
%tmpfiles_create %{_tmpfilesdir}/samba.conf
if [ -d /var/cache/samba ]; then
mv /var/cache/samba/netsamlogon_cache.tdb /var/lib/samba/ 2>/dev/null
mv /var/cache/samba/winbindd_cache.tdb /var/lib/samba/ 2>/dev/null