1
0
forked from cockpit/cockpit

Accepting request 826045 from home:kukuk:branches:systemsmanagement:cockpit

- Require group wheel
- Add permission macros [bsc#1169614]
- Create tmpfiles in %post install

OBS-URL: https://build.opensuse.org/request/show/826045
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:cockpit/cockpit?expand=0&rev=38
This commit is contained in:
Ludwig Nussel 2020-08-13 07:17:34 +00:00 committed by Git OBS Bridge
parent 72f1daf98e
commit fdc305bca3
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Aug 12 09:33:17 UTC 2020 - Thorsten Kukuk <kukuk@suse.com>
- Require group wheel
- Add permission macros [bsc#1169614]
- Create tmpfiles in %post install
-------------------------------------------------------------------
Fri Jun 26 12:09:09 UTC 2020 - Ludwig Nussel <lnussel@suse.de>

View File

@ -467,11 +467,13 @@ Summary: Cockpit Web Service
Requires: glib-networking
Requires: openssl
Requires: glib2 >= 2.37.4
Requires: group(wheel)
Conflicts: firewalld < 0.6.0-1
Recommends: sscg >= 2.3
Recommends: system-logos
Requires: systemd >= 235
Suggests: sssd-dbus
Requires(pre): permissions
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
@ -534,6 +536,8 @@ getent group cockpit-wsinstance >/dev/null || groupadd -r cockpit-wsinstance
getent passwd cockpit-wsinstance >/dev/null || useradd -r -g cockpit-wsinstance -d /nonexisting -s /sbin/nologin -c "User for cockpit-ws instances" cockpit-wsinstance
%post ws
%set_permissions %{_libexecdir}/cockpit-session
%tmpfiles_create cockpit-tempfiles.conf
%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
@ -545,6 +549,9 @@ test -f %{_bindir}/firewall-cmd && firewall-cmd --reload --quiet || true
%systemd_postun_with_restart cockpit.socket
%systemd_postun_with_restart cockpit.service
%verifyscript ws
%verify_permissions -e %{_libexecdir}/cockpit-session
# -------------------------------------------------------------------------------
# Sub-packages that are part of cockpit-system in RHEL/CentOS, but separate in Fedora