fix install error failed to docker.service does not exist

This commit is contained in:
lvxiangcong 2024-05-11 11:28:40 +08:00
parent e04736504b
commit a366861d17

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