2d8eff32fb
The %post section referred to the wrong service file, use workerconfig not sysinv-agent. Story: 2006723 Task: 37136 Change-Id: I5d8f82c7e08f714bad1490015bed969ce32cd039 Signed-off-by: Saul Wold <sgw@linux.intel.com>
60 lines
1.2 KiB
RPMSpec
60 lines
1.2 KiB
RPMSpec
Summary: General config initialization gate
|
|
Name: config-gate
|
|
Version: 1.0
|
|
Release: 1
|
|
License: Apache-2.0
|
|
Group: Development/Tools/Other
|
|
URL: https://opendev.org/starlingx/config
|
|
Source0: %{name}-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: systemd
|
|
|
|
%define debug_package %{nil}
|
|
|
|
%description
|
|
General configuration for the initialization gate
|
|
|
|
%package -n %{name}-worker
|
|
Summary: Startup configuration gate
|
|
BuildRequires: -devel
|
|
Group: Development/Tools/Other
|
|
|
|
%description -n %{name}-worker
|
|
General configuration for the initialization gate
|
|
|
|
%define local_etc_systemd /etc/systemd/system/
|
|
|
|
%prep
|
|
%setup -n %{name}-%{version}/files
|
|
|
|
%build
|
|
|
|
%install
|
|
make install SBINDIR=%{buildroot}%{_sbindir} SYSTEMDDIR=%{buildroot}%{local_etc_systemd}
|
|
|
|
%post
|
|
%service_add_post config.service config.target
|
|
|
|
%post -n %{name}-worker
|
|
systemctl enable worker-config-gate.service
|
|
|
|
%clean
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc LICENSE
|
|
%{_sbindir}/wait_for_config_init.sh
|
|
%{local_etc_systemd}/config.service
|
|
%dir %{_sysconfdir}/systemd
|
|
%dir %{_sysconfdir}/systemd/system
|
|
|
|
%files -n %{name}-worker
|
|
%defattr(-,root,root,-)
|
|
%{_sbindir}/wait_for_worker_config_init.sh
|
|
%{local_etc_systemd}/worker-config-gate.service
|
|
%dir %{_sysconfdir}/systemd
|
|
%dir %{_sysconfdir}/systemd/system
|
|
|
|
%changelog
|