From c71bf8390b9a06fa498d2cb4f8a4924309f4875e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 11 Apr 2020 11:24:36 +0200 Subject: New upstream version 3.1.6 --- doc/ipmiutil.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'doc/ipmiutil.spec') diff --git a/doc/ipmiutil.spec b/doc/ipmiutil.spec index 3e8eddd..9de2886 100644 --- a/doc/ipmiutil.spec +++ b/doc/ipmiutil.spec @@ -3,7 +3,7 @@ # Copyright (c) 2012 Andy Cress # Name: ipmiutil -Version: 3.1.5 +Version: 3.1.6 Release: 1%{?dist} Summary: Easy-to-use IPMI server management utilities License: BSD @@ -136,7 +136,7 @@ rm -rf %{buildroot} %{systemd_fls}/ipmiutil_asy.service %{systemd_fls}/ipmiutil_wdt.service %{systemd_fls}/ipmi_port.service -%{_datadir}/%{name}/ipmiutil.env +%{_datadir}/%{name}/ipmiutil.env.template %{_datadir}/%{name}/ipmiutil.pre %{_datadir}/%{name}/ipmiutil.setup %{_datadir}/%{name}/ipmi_if.sh @@ -217,6 +217,9 @@ scr_dir=%{_datadir}/%{name} if [ -x /bin/systemctl ] && [ -d %{unit_dir} ]; then # Replace if exists, append if not. # Use # as the sed delimiter to prevent handling slash in the path. + if [ ! -f %{_datadir}/%{name}/ipmiutil.env ]; then + cp %{_datadir}/%{name}/ipmiutil.env.template %{_datadir}/%{name}/ipmiutil.env + fi grep -q 'IINITDIR' %{_datadir}/%{name}/ipmiutil.env \ && sed -i 's#^IINITDIR=.*#IINITDIR=%{init_dir}#' %{_datadir}/%{name}/ipmiutil.env \ || echo "IINITDIR=%{init_dir}" >> %{_datadir}/%{name}/ipmiutil.env -- cgit v1.2.3