#6 Use tmpfiles macro
Closed 5 years ago by asn. Opened 5 years ago by walters.
rpms/ walters/samba use-tmpfiles-create  into  master

Use tmpfiles macro
Colin Walters • 5 years ago  
file modified
+1 -1
@@ -1123,7 +1123,7 @@ 

  

  %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

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.

I've pushed this patch to master with 14849e6.

Pull-Request has been closed by asn

5 years ago