Run the systemd scriptlets with cockpit.socket

Since we're socket activated it needs to be cockpit.socket that's
referred to in the cockpit scriptlets

rhbz#1110764
This commit is contained in:
Stef Walter 2014-07-22 11:54:20 +02:00
parent 720dfb2b82
commit ef7538fec5

View File

@ -1,6 +1,6 @@
Name: cockpit
Version: 0.16
Release: 1%{?dist}
Release: 2%{?dist}
Summary: A user interface for Linux servers
License: LGPLv2+
@ -126,18 +126,21 @@ getent group cockpit-storage-admin >/dev/null || groupadd -r cockpit-storage-adm
getent passwd cockpit-ws >/dev/null || useradd -r -g cockpit-ws -d / -s /sbin/nologin -c "User for cockpit-ws" cockpit-ws
%post
%systemd_post cockpit.service
%systemd_post cockpit.socket
# firewalld only partially picks up changes to its services files without this
test -f %{_bindir}/firewall-cmd && firewall-cmd --reload --quiet || true
%preun
%systemd_preun cockpit.service
%systemd_preun cockpit.socket
%postun
%systemd_postun_with_restart cockpit.service
%systemd_postun_with_restart cockpit.socket
%changelog
* Tue Jul 22 2014 Stef Walter <stefw@redhat.com> 0.16-2
- Refer to cockpit.socket in scriptlets rhbz#1110764
* Thu Jul 17 2014 Stef Walter <stefw@redhat.com> 0.16-1
- Update to 0.16 release