7754d7e95c
We can do the similar change like we did in https://review.openstack.org/#/c/620466/ Since we have duplicated log configuration,we can erase logrotate.d/dhcp instead of remove the file with the patch. Deployment test pass and logrotate.d/dhcp file check pass. Story: 2004452 Task: 28131 Change-Id: Ib22fa073ca4e09af1b25854f0f1c8574f9337f3c Signed-off-by: zhipengl <zhipengs.liu@intel.com>
45 lines
1.2 KiB
RPMSpec
45 lines
1.2 KiB
RPMSpec
Summary: haproxy-config
|
|
Name: haproxy-config
|
|
Version: 1.0
|
|
Release: %{tis_patch_ver}%{?_tis_dist}
|
|
License: Apache-2.0
|
|
Group: base
|
|
Packager: StarlingX
|
|
URL: unknown
|
|
BuildArch: noarch
|
|
Source: %name-%version.tar.gz
|
|
|
|
Requires: haproxy
|
|
Summary: package StarlingX configuration files of haproxy to system folder.
|
|
|
|
%description
|
|
package StarlingX configuration files of haproxy to system folder.
|
|
|
|
%prep
|
|
%setup
|
|
|
|
%build
|
|
|
|
%install
|
|
%{__install} -d 755 %{buildroot}%{_sysconfdir}/haproxy/errors/
|
|
%{__install} -m 755 503.http %{buildroot}%{_sysconfdir}/haproxy/errors/503.http
|
|
|
|
%{__install} -d %{buildroot}%{_sysconfdir}/systemd/system
|
|
%{__install} -m 644 haproxy.service %{buildroot}%{_sysconfdir}/systemd/system
|
|
|
|
mkdir -p %{_sysconfdir}/init.d
|
|
%{__install} -p -D -m 0755 haproxy.sh %{buildroot}%{_sysconfdir}/init.d/haproxy
|
|
|
|
%post
|
|
/bin/systemctl disable haproxy.service
|
|
if test -s %{_sysconfdir}/logrotate.d/haproxy ; then
|
|
echo '#See /etc/logrotate.d/syslog for haproxy rules' > %{_sysconfdir}/logrotate.d/haproxy
|
|
fi
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%dir %{_sysconfdir}/haproxy/errors/
|
|
%{_sysconfdir}/haproxy/errors/*
|
|
%{_sysconfdir}/init.d/haproxy
|
|
%{_sysconfdir}/systemd/system/haproxy.service
|