prometheus-node-exporter-lua: fixed small warning
authorRosen Penev <rosenp@gmail.com>
Tue, 28 Jan 2020 02:55:31 +0000 (18:55 -0800)
committerRosen Penev <rosenp@gmail.com>
Tue, 28 Jan 2020 02:55:31 +0000 (18:55 -0800)
This happens during compilation:

Enabling network
./etc/init.d/prometheus-node-exporter-lua: line 7: /lib/functions/network.sh: No such file or directory

Signed-off-by: Rosen Penev <rosenp@gmail.com>
utils/prometheus-node-exporter-lua/Makefile
utils/prometheus-node-exporter-lua/files/etc/init.d/prometheus-node-exporter-lua

index 4a4f6e4a3c99d86fc01513026ff7b84101c448a2..06b28ee9de9e1aea12606449102dfe36b976f20f 100644 (file)
@@ -5,7 +5,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=prometheus-node-exporter-lua
 PKG_VERSION:=2019.11.17
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_MAINTAINER:=Etienne CHAMPETIER <champetier.etienne@gmail.com>
 PKG_LICENSE:=Apache-2.0
index a2b0e229e7d3a158fb18c70e44b8d96d94641392..582e2116153de47869a0138118d0ccf229eab4d5 100644 (file)
@@ -4,13 +4,13 @@
 START=60
 USE_PROCD=1
 
-. /lib/functions/network.sh
-
 _log() {
        logger -p daemon.info -t prometheus-node-exporter-lua "$@"
 }
 
 start_service() {
+       . /lib/functions/network.sh
+
        local interface ipv6 port bind
 
        config_load prometheus-node-exporter-lua.main