Commit 2ff19fa 1 parent 436b7af commit 2ff19fa Copy full SHA for 2ff19fa
File tree 6 files changed +11
-17
lines changed
6 files changed +11
-17
lines changed Original file line number Diff line number Diff line change @@ -59,11 +59,6 @@ tmpfilesconfdir = $(prefix)/lib/tmpfiles.d
59
59
systemdgenerated += $(nodist_tmpfilesconf_DATA )
60
60
nodist_tmpfilesconf_DATA = src/systemd/tmpfiles.d/cockpit-ws.conf
61
61
62
- # -----------------
63
- # sysusers
64
- sysusersconfdir = $(prefix ) /lib/sysusers.d
65
- dist_sysusersconf_DATA = src/systemd/sysusers.d/cockpit-wsinstance.conf
66
-
67
62
# -----------------
68
63
# Policykit
69
64
polkitdir = $(datadir ) /polkit-1/actions
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -390,7 +390,6 @@ authentication via sssd/FreeIPA.
390
390
%{_unitdir }/cockpit-wsinstance-socket-user.service
391
391
%{_unitdir }/system-cockpithttps.slice
392
392
%{_prefix }/%{__lib}/tmpfiles.d/cockpit-ws.conf
393
- %{_sysusersdir }/cockpit-wsinstance.conf
394
393
%{pamdir }/pam_ssh_add.so
395
394
%{pamdir }/pam_cockpit_cert.so
396
395
%{_libexecdir }/cockpit-ws
@@ -409,11 +408,6 @@ authentication via sssd/FreeIPA.
409
408
%ghost %{_sharedstatedir }/selinux/%{selinuxtype }/active/modules/200/%{name }
410
409
411
410
%pre ws
412
- # HACK: old RPM and even Fedora's current RPM don't properly support sysusers
413
- # https://github.com/rpm-software-management/rpm/issues/3073
414
- getent group cockpit-wsinstance > /dev/null || groupadd -r cockpit-wsinstance
415
- getent passwd cockpit-wsinstance > /dev/null || useradd -r -g cockpit-wsinstance -d /nonexisting -s /sbin/nologin -c " User for cockpit-ws instances" cockpit-wsinstance
416
-
417
411
if %{_sbindir}/selinuxenabled 2> /dev/null; then
418
412
%selinux_relabel_pre -s %{selinuxtype}
419
413
fi
@@ -448,6 +442,11 @@ if test -f %{_sysconfdir}/pam.d/cockpit && grep -q pam_cockpit_cert %{_sysconfd
448
442
echo '**** WARNING:'
449
443
fi
450
444
445
+ # remove obsolete system user on upgrade (replaced with DynamicUser in version 330)
446
+ if getent passwd cockpit-wsinstance > /dev/null; then
447
+ userdel cockpit-wsinstance
448
+ fi
449
+
451
450
%preun ws
452
451
%systemd_preun cockpit.socket cockpit.service
453
452
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ ${env:deb_systemdsystemunitdir}/system-cockpithttps.slice
18
18
${env:deb_pamlibdir}/security/pam_ssh_add.so
19
19
${env:deb_pamlibdir}/security/pam_cockpit_cert.so
20
20
usr/lib/tmpfiles.d/cockpit-ws.conf
21
- usr/lib/sysusers.d/cockpit-wsinstance.conf
22
21
usr/lib/cockpit/cockpit-session
23
22
usr/lib/cockpit/cockpit-ws
24
23
usr/lib/cockpit/cockpit-wsinstance-factory
Original file line number Diff line number Diff line change @@ -10,6 +10,12 @@ if [ "$1" = "configure" ] && dpkg-statoverride --list /usr/lib/cockpit/cockpit-s
10
10
chgrp root /usr/lib/cockpit/cockpit-session
11
11
fi
12
12
13
+ # remove obsolete system user on upgrade (replaced with DynamicUser in version 330)
14
+ if [ " $1 " = " configure" ] && getent passwd cockpit-wsinstance > /dev/null; then
15
+ echo " Cleaning up obsolete static cockpit-wsinstance user"
16
+ deluser --system cockpit-wsinstance
17
+ fi
18
+
13
19
# restart cockpit.service on package upgrades, if it's already running
14
20
if [ -d /run/systemd/system ] && [ -n " $2 " ]; then
15
21
deb-systemd-invoke try-restart cockpit.service > /dev/null || true
Original file line number Diff line number Diff line change 87
87
NO_QUNIT=1 pytest -vv -k 'not linter and not test_descriptions' -opythonpath=$$(ls -d debian/cockpit-bridge/usr/lib/python3*/dist-packages)
88
88
endif
89
89
endif
90
-
91
- # dh compat 14 does that automatically, remove when upgrading
92
- execute_before_dh_installtmpfiles :
93
- dh_installsysusers
You can’t perform that action at this time.
0 commit comments