aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTaras Chornyi <tarasx.chornyi@intel.com>2017-08-21 13:26:47 +0300
committerTaras Chornyi <tarasx.chornyi@intel.com>2017-08-21 13:26:47 +0300
commit1baff0b46c9c91de4b2aa3f50e4f61201131b222 (patch)
tree28653ce909b684d659b07a9659b3ca4d95dd8300
parentfbb675e32aff3bc7079ba756643b803a979c7347 (diff)
Replace “CapabilityBoundingSet=” line instead of appending
Change-Id: I44c88bcf246f43d8d065729099e6ecfdee715c5a Signed-off-by: Taras Chornyi <tarasx.chornyi@intel.com>
-rwxr-xr-xci/utility/collectd_build_rpm.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/ci/utility/collectd_build_rpm.sh b/ci/utility/collectd_build_rpm.sh
index 60275745..e66a5b98 100755
--- a/ci/utility/collectd_build_rpm.sh
+++ b/ci/utility/collectd_build_rpm.sh
@@ -24,7 +24,7 @@ $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" \
+ --expression="s/^CapabilityBoundingSet=/CapabilityBoundingSet=CAP_SETUID CAP_SETGID CAP_SYS_RAWIO/g" \
$COLLECTD_DIR/contrib/systemd.collectd.service
make dist