!52 fix install error failed to docker.service does not exist

From: @running-tortoise 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
This commit is contained in:
openeuler-ci-bot 2024-05-13 10:39:29 +00:00 committed by Gitee
commit 4f57a9a8c4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -7,7 +7,7 @@
Name: moby Name: moby
Version: 25.0.3 Version: 25.0.3
Release: 3 Release: 4
Summary: The open-source application container engine Summary: The open-source application container engine
License: ASL 2.0 License: ASL 2.0
URL: https://www.docker.com URL: https://www.docker.com
@ -182,19 +182,22 @@ install -p -m 644 %{_builddir}/%{_source_client}/{LICENSE,MAINTAINERS,NOTICE,REA
%{_datadir}/fish/vendor_completions.d/docker.fish %{_datadir}/fish/vendor_completions.d/docker.fish
%doc %{_pkgdocdir} %doc %{_pkgdocdir}
%post %post engine
%systemd_post docker.service %systemd_post docker.service
if ! getent group docker > /dev/null; then if ! getent group docker > /dev/null; then
groupadd --system docker groupadd --system docker
fi fi
%preun %preun engine
%systemd_preun docker.service docker.socket %systemd_preun docker.service docker.socket
%postun %postun engine
%systemd_postun_with_restart docker.service %systemd_postun_with_restart docker.service
%changelog %changelog
* Sat May 11 2024 lvxiangcong<lvxiangcong@kylinos.cn> - 25.0.3-4
- DESC:fix install error failed to docker.service does not exit
* Mon Apr 22 2024 lvxiangcong<lvxiangcong@kylinos.cn> - 25.0.3-3 * Mon Apr 22 2024 lvxiangcong<lvxiangcong@kylinos.cn> - 25.0.3-3
- DESC:fix cve-2024-32473 - DESC:fix cve-2024-32473