summaryrefslogtreecommitdiffstats
path: root/ci/utility
diff options
context:
space:
mode:
authorTaras Chornyi <tarasx.chornyi@intel.com>2017-08-19 11:02:46 -0400
committerTaras Chornyi <tarasx.chornyi@intel.com>2017-08-19 11:02:46 -0400
commitfbb675e32aff3bc7079ba756643b803a979c7347 (patch)
tree51f63d5d95eb5cc5c28978f0dd49a3d7cfd28d04 /ci/utility
parent905d4a2f817ace4c0410eca23aacbd1656a0e701 (diff)
ci: temporary workaround for collectd service capabilities issue
Change-Id: I16babbb7acf18dc467d37d9e077346e9547a0f9b Signed-off-by: Taras Chornyi <tarasx.chornyi@intel.com>
Diffstat (limited to 'ci/utility')
-rwxr-xr-xci/utility/collectd_build_rpm.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/ci/utility/collectd_build_rpm.sh b/ci/utility/collectd_build_rpm.sh
index 267dc939..60275745 100755
--- a/ci/utility/collectd_build_rpm.sh
+++ b/ci/utility/collectd_build_rpm.sh
@@ -19,9 +19,13 @@ source $DIR/package-list.sh
VERSION="VERSION_NOT_SET"
cd $COLLECTD_DIR
-VERSION=$( $COLLECTD_DIR/version-gen.sh | sed "s/^\W$//g" )
+VERSION=$( $COLLECTD_DIR/version-gen.sh )
$COLLECTD_DIR/build.sh
$COLLECTD_DIR/configure
+sed --regexp-extended \
+ --in-place=".bak" \
+ --expression="/ProtectHome=true/a CapabilityBoundingSet=CAP_SETUID CAP_SETGID CAP_SYS_RAWIO" \
+ $COLLECTD_DIR/contrib/systemd.collectd.service
make dist
cp $COLLECTD_DIR/collectd-$VERSION.tar.bz2 $RPM_WORKDIR/SOURCES/