- Use official systemd macros in %post install

OBS-URL: https://build.opensuse.org/package/show/Base:System/issue-generator?expand=0&rev=9
This commit is contained in:
Thorsten Kukuk 2017-11-28 12:11:12 +00:00 committed by Git OBS Bridge
parent a530cfc0bd
commit a6d21145df
2 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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