mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 09:10:10 +01:00
contrib/rpm: Provide list of units to %systemd_postun
%systemd_postun is meant to be run with arguments and Fedora Rawhide seems to enforce this now. Therefore provide the units there, too. https://github.com/NetworkManager/NetworkManager/pull/348
This commit is contained in:
parent
ad9e5995e1
commit
7d62f81e2e
1 changed files with 4 additions and 2 deletions
|
|
@ -41,6 +41,8 @@
|
|||
|
||||
%global real_version_major %(printf '%s' '%{real_version}' | sed -n 's/^\\([1-9][0-9]*\\.[1-9][0-9]*\\)\\.[1-9][0-9]*$/\\1/p')
|
||||
|
||||
%global systemd_units NetworkManager.service NetworkManager-wait-online.service NetworkManager-dispatcher.service
|
||||
|
||||
###############################################################################
|
||||
|
||||
%bcond_with meson
|
||||
|
|
@ -777,7 +779,7 @@ fi
|
|||
/usr/bin/udevadm control --reload-rules || :
|
||||
/usr/bin/udevadm trigger --subsystem-match=net || :
|
||||
|
||||
%systemd_post NetworkManager.service NetworkManager-wait-online.service NetworkManager-dispatcher.service
|
||||
%systemd_post %{systemd_units}
|
||||
|
||||
%triggerin -- initscripts
|
||||
if [ -f %{_sbindir}/ifup -a ! -L %{_sbindir}/ifup ]; then
|
||||
|
|
@ -806,7 +808,7 @@ fi
|
|||
/usr/bin/udevadm control --reload-rules || :
|
||||
/usr/bin/udevadm trigger --subsystem-match=net || :
|
||||
|
||||
%systemd_postun
|
||||
%systemd_postun %{systemd_units}
|
||||
|
||||
|
||||
%if (0%{?fedora} && 0%{?fedora} < 28) || 0%{?rhel}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue