summaryrefslogtreecommitdiff
path: root/doc/ipmiutil.spec
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff.email>2020-04-12 23:13:18 +0200
committerJörg Frings-Fürst <debian@jff.email>2020-04-12 23:13:18 +0200
commitb3f027c605992040981c81d34ccc02a9f1976c07 (patch)
treefe768eef31a268f7ef511b8c46240c5d1609fb88 /doc/ipmiutil.spec
parent4d04d317f1e2c8e46b8fc04b4a20689da471a5d3 (diff)
parent1396e325ab6f31d20694c57bef57eb4f9ce63205 (diff)
Merge branch 'release/debian/3.1.6-1'debian/3.1.6-1
Diffstat (limited to 'doc/ipmiutil.spec')
-rw-r--r--doc/ipmiutil.spec7
1 files changed, 5 insertions, 2 deletions
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