diff options
Diffstat (limited to 'src/collectd/Makefile')
-rw-r--r-- | src/collectd/Makefile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/collectd/Makefile b/src/collectd/Makefile index e09aca3b..decb8e84 100644 --- a/src/collectd/Makefile +++ b/src/collectd/Makefile @@ -69,12 +69,14 @@ force_make: $(WORK_DIR)/Makefile force_install: $(AT)$(MAKE) -C $(WORK_DIR) install +ifndef DOCKER $(AT)cp $(WORK_DIR)/contrib/systemd.collectd.service /etc/systemd/system/ $(AT)mv /etc/systemd/system/systemd.collectd.service /etc/systemd/system/collectd.service $(AT)sed -i -e 's/ExecStart=\/usr\/sbin\/collectd/ExecStart=\/opt\/collectd\/sbin\/collectd/g' /etc/systemd/system/collectd.service $(AT)sed -i -e 's/CapabilityBoundingSet=/CapabilityBoundingSet=CAP_SETUID CAP_SETGID CAP_SYS_RAWIO CAP_SYS_ADMIN/g' /etc/systemd/system/collectd.service $(AT)sed -i -e 's|Environment=\(.*\)|Environment=XDG_CACHE_HOME='$(XDG_CACHE_HOME_DIR)' \1|g' /etc/systemd/system/collectd.service $(AT)systemctl daemon-reload +endif $(AT)sudo ./ovs_pmd_stats_config.sh $(AT)sudo ./snmp_mib_config.sh $(AT)sudo ./include_config.sh |