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:
parent
3bf028cf0b
commit
14849e6974
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user