From a7ce70b5efc1d415f82201bf7245b5d5752f80c0 Mon Sep 17 00:00:00 2001 From: Bruno Cornec Date: Tue, 28 Mar 2017 11:54:40 +0200 Subject: [PATCH] Adds the bash completion script to install proc Change-Id: I79058663d1c22c2efb70ec87384486ccaf9be14b --- install.sh | 4 +++- pbconf/python-redfish/rpm/python-redfish.spec | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index bfbba85..426a856 100755 --- a/install.sh +++ b/install.sh @@ -25,8 +25,10 @@ $python setup.py install --skip-build --root=$rootdir --prefix=$prefix rm -rf $rootdir/$sitelib/redfish/old $rootdir/$prefix/share/doc/$5/html $rootdir/$prefix/share/doc/$5/*.pdf # Hardcoded for now to solve the delivery of the conf file still not correct with setup.py -mkdir -p $rootdir/etc +install -d 755 $rootdir/etc mv $rootdir/$prefix/etc/redfish-client.conf $rootdir/etc/redfish-client.conf +install -d 755 $rootdir/etc/bash_completion.d +install -m 644 redfish-client/etc/bash_completion.d/redfish-client.bash $rootdir/etc/bash_completion.d # Man pages installation for i in 1; do diff --git a/pbconf/python-redfish/rpm/python-redfish.spec b/pbconf/python-redfish/rpm/python-redfish.spec index ca4105c..016b799 100644 --- a/pbconf/python-redfish/rpm/python-redfish.spec +++ b/pbconf/python-redfish/rpm/python-redfish.spec @@ -127,6 +127,7 @@ done %files -n PBREALPKG-data %config(noreplace) %{_sysconfdir}/redfish-client.conf +%config(noreplace) %{_sysconfdir}/bash_completion.d/redfish-client.bash %dir %{_datadir}/redfish-client %{_datadir}/redfish-client/templates/* %{_datadir}/redfish-client/*.txt