From 0611bb82865f593fe3eb87912c4d4c3e461eb9d7 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Tue, 5 Nov 2024 17:54:26 +0800 Subject: [PATCH] move post/preun/postun scriptlets into engine sub package --- moby.spec | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/moby.spec b/moby.spec index 17faa99..f50f969 100644 --- a/moby.spec +++ b/moby.spec @@ -7,7 +7,7 @@ Name: docker Version: 25.0.3 -Release: 12 +Release: 13 Summary: The open-source application container engine License: ASL 2.0 URL: https://www.docker.com @@ -44,7 +44,7 @@ lightweight container. %package engine Summary: Docker daemon binary and related utilities -Requires: /usr/sbin/groupadd +Requires(post): /usr/sbin/groupadd Requires: runc Requires: container-selinux >= 2:2.74 Requires: libseccomp >= 2.3 @@ -54,6 +54,7 @@ Requires: libcgroup Requires: containerd Requires: tar Requires: xz +%{?systemd_requires} BuildRequires: bash BuildRequires: ca-certificates @@ -185,19 +186,25 @@ install -p -m 644 %{_builddir}/%{_source_client}/{LICENSE,MAINTAINERS,NOTICE,REA %{_datadir}/fish/vendor_completions.d/docker.fish %doc %{_pkgdocdir} -%post +%post engine %systemd_post docker.service if ! getent group docker > /dev/null; then groupadd --system docker fi -%preun +%preun engine %systemd_preun docker.service docker.socket -%postun +%postun engine %systemd_postun_with_restart docker.service %changelog +* Tue Nov 05 2024 Funda Wang - 25.0.3-13 +- Type:bugfix +- ID:NA +- SUG:NA +- DESC: move post/preun/postun scriptlets into engine sub package + * Tue Oct 29 2024 xuguangmin - 25.0.3-12 - Type:bugfix - ID:NA -- Gitee