scripts when uninstall in %preun and %postun should watchdog-ping.service but not watchdog.ping.service

This commit is contained in:
si-gui 2020-09-19 17:08:43 +08:00
parent 09b447a76b
commit 57afc28861

View File

@ -47,11 +47,11 @@ install -Dd -m0755 %{buildroot}%{_libexecdir}/watchdog/scripts
%preun %preun
%systemd_preun watchdog.service %systemd_preun watchdog.service
%systemd_preun watchdog.ping.service %systemd_preun watchdog-ping.service
%postun %postun
%systemd_postun_with_restart watchdog.service %systemd_postun_with_restart watchdog.service
%systemd_postun_with_restart watchdog.ping.service %systemd_postun_with_restart watchdog-ping.service
%triggerun -- watchdog < 5.9-4 %triggerun -- watchdog < 5.9-4