]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: use %tmpfiles_create macro 6692/head
authorNathan Cutler <ncutler@suse.com>
Thu, 26 Nov 2015 14:22:21 +0000 (15:22 +0100)
committerNathan Cutler <ncutler@suse.com>
Thu, 26 Nov 2015 18:04:25 +0000 (19:04 +0100)
Ensure the macro is defined, and use it to placate the relevant openSUSE
RPMLINT check.

Drop --prefix=/run/ceph (introduced by 477bb064) because we now supply the
configuration file on the systemd-tmpfiles command line. (We don't need to run
systemd-tmpfiles on all files in /usr/lib/tmpfiles.d/ - just on ours.)

Signed-off-by: Nathan Cutler <ncutler@suse.com>
ceph.spec.in

index 09e63fc290b18477ede0e9f1a858820989467e90..a9a8143d774eba1ac329f77b68c143f37d789f97 100644 (file)
@@ -43,6 +43,7 @@ restorecon -R /var/log/ceph > /dev/null 2>&1;
 # /var/run/ceph.
 %if 0%{?fedora} || 0%{?rhel} >= 7 || 0%{?suse_version} >= 1210
 %global _with_systemd 1
+%{!?tmpfiles_create: %global tmpfiles_create systemd-tmpfiles --create}
 %endif
 
 # LTTng-UST enabled on Fedora, RHEL 6, and SLES 12
@@ -935,7 +936,7 @@ exit 0
 
 %post -n ceph-common
 %if 0%{?_with_systemd}
-systemd-tmpfiles --create --prefix=/run/ceph
+%tmpfiles_create %{_tmpfilesdir}/ceph-common.conf
 %endif
 
 %postun -n ceph-common