Fix systemd related scriptlet error (#1887984)

Signed-off-by: David Sommerseth <dazo@eurephia.org>
epel9
David Sommerseth 3 years ago
parent 17755bc969
commit 319722d474
No known key found for this signature in database
GPG Key ID: 8876DD803369EF14

@ -157,16 +157,23 @@ getent passwd openvpn &>/dev/null || \
-d /etc/openvpn openvpn -d /etc/openvpn openvpn
%post %post
%systemd_post openvpn-client@\*.service for srv in `systemctl | awk '/openvpn-client@.*\.service/{print $1} /openvpn-server@.*\.service/{print $1}'`;
%systemd_post openvpn-server@\*.service do
%systemd_post $srv
done
%preun %preun
%systemd_preun openvpn-client@\*.service for srv in `systemctl | awk '/openvpn-client@.*\.service/{print $1} /openvpn-server@.*\.service/{print $1}'`;
%systemd_preun openvpn-server@\*.service do
%systemd_preun $srv
done
%postun %postun
%systemd_postun_with_restart openvpn-client@\*.service for srv in `systemctl | awk '/openvpn-client@.*\.service/{print $1} /openvpn-server@.*\.service/{print $1}'`;
%systemd_postun_with_restart openvpn-server@\*.service do
%systemd_postun_with_restart $srv
done
%files %files
%{_pkgdocdir} %{_pkgdocdir}
@ -194,6 +201,9 @@ getent passwd openvpn &>/dev/null || \
%changelog %changelog
* Thu Jan 27 2022 David Sommerseth <davids@openvpn.net> - 2.5.5-4
- Fix systemd related scriptlet error (#1887984)
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.5-3 * Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.5.5-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

Loading…
Cancel
Save