Files
update/patch-scripts/EXAMPLE_DC/centos/EXAMPLE_DC.spec
albailey 73c948f9e3 Add an example restart script for distributed cloud
This is the type of script that can be invoked when
applying designer patches to test distributed cloud changes.

Change-Id: I3c743bf550e28f54f5dd4b1100ef561573e88e1a
Story: 2008137
Task: 41178
Signed-off-by: albailey <Al.Bailey@windriver.com>
2020-11-02 16:25:57 -06:00

29 lines
560 B
RPMSpec

Name: EXAMPLE_DC
Summary: StarlingX In-Service DistCloud Patch Script Example
Version: 1.0
Release: %{tis_patch_ver}%{?_tis_dist}
License: Apache-2.0
Group: base
Packager: Wind River <info@windriver.com>
Source0: distcloud-restart-example
BuildArch: noarch
%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