From a6d21145df0f40cd560a42dcd2a02ad80efd725b686326f6aca3bdf3ba289f32 Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Tue, 28 Nov 2017 12:11:12 +0000 Subject: [PATCH] - Use official systemd macros in %post install OBS-URL: https://build.opensuse.org/package/show/Base:System/issue-generator?expand=0&rev=9 --- issue-generator.changes | 5 +++++ issue-generator.spec | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/issue-generator.changes b/issue-generator.changes index d5d0f6b..fc40740 100644 --- a/issue-generator.changes +++ b/issue-generator.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Nov 28 13:10:37 CET 2017 - kukuk@suse.de + +- Use official systemd macros in %post install + ------------------------------------------------------------------- Tue Nov 28 11:51:23 CET 2017 - kukuk@suse.de diff --git a/issue-generator.spec b/issue-generator.spec index 5b8d9a6..7af9d38 100644 --- a/issue-generator.spec +++ b/issue-generator.spec @@ -51,9 +51,7 @@ install -m 644 udev/sysconfig.issue-generator %{buildroot}%{_fillupdir}/ %service_add_pre issue-generator.service issue-add-ssh-keys.service %post -if [ -x %{_bindir}/systemd-tmpfiles ]; then - %{_bindir}/systemd-tmpfiles --create issue-generator.conf ||: -fi +%tmpfiles_create issue-generator.conf %{fillup_only -n issue-generator} %service_add_post issue-generator.service issue-add-ssh-keys.service