update/patch-scripts/EXAMPLE_DOCKER/centos/EXAMPLE_DOCKER.spec
Jim Gauld 443681e209 Support dockerd in-service patching with EXAMPLE_DOCKER script
This adds the EXAMPLE_DOCKER in-service patching script.
Packaging currently for CentOS, but script itself is generic.

The docker.service has required patching, so this supports future
patching.

Closes-Bug: 1996916
Depends-On: https://review.opendev.org/c/starlingx/utilities/+/865731

Test Plan:
PASS: CentOS: Apply/remove designer in-service patch including
      EXAMPLE_DOCKER and verify docker.service restarts.

Signed-off-by: Jim Gauld <james.gauld@windriver.com>
Change-Id: I2c630eac88da030af69240a2badd11f06cbd5475
2022-11-27 18:51:12 +00:00

28 lines
541 B
RPMSpec

Name: EXAMPLE_DOCKER
Summary: StarlingX In-Service dockerd Patch Script Example
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: windriver
Group: base
Packager: Wind River <info@windriver.com>
Source0: dockerd-process-restart
%install
install -Dp -m 700 %{S:0} %{buildroot}%{_patch_scripts}/%{name}
%description
%{summary}
%files
%defattr(-,root,root,-)
%{_patch_scripts}/*
%post
cp -f %{_patch_scripts}/%{name} %{_runtime_patch_scripts}/
exit 0
%preun
cp -f %{_patch_scripts}/%{name} %{_runtime_patch_scripts}/
exit 0