summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTasos Katsoulas <12612986+tkatsoulas@users.noreply.github.com>2024-03-14 13:37:04 +0200
committerGitHub <noreply@github.com>2024-03-14 13:37:04 +0200
commit9a07f50ec8373b2ff1b9506e7768e2a36aa5259a (patch)
treed61ae415571b2d7b529989ec53dfb6d75c663088
parentd5384db76074f6344a6fa9396f22393e3b0f420a (diff)
Install the correct service file based on systemd version (#17159)
--------- Signed-off-by: Tasos Katsoulas <tasos@netdata.cloud>
-rwxr-xr-xcontrib/debian/rules6
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/debian/rules b/contrib/debian/rules
index 8f337adad2..e9231cdca5 100755
--- a/contrib/debian/rules
+++ b/contrib/debian/rules
@@ -11,10 +11,10 @@ BASE_CONFIG = system/netdata.conf
SYSTEMD_VERSION = $(shell /bin/sh -c "systemd --version 2>&1 | head -n 1 | cut -f 2 -d ' '")
-ifeq ($(shell test $(SYSTEMD_VERSION) -ge 235 && echo "1"), 1)
-SYSTEMD_UNIT = $(BUILDDIR)/system/systemd/netdata.service.v235
-else
+ifeq ($(shell test $(SYSTEMD_VERSION) -gt 235 && echo "1"), 1)
SYSTEMD_UNIT = $(BUILDDIR)/system/systemd/netdata.service
+else
+SYSTEMD_UNIT = $(BUILDDIR)/system/systemd/netdata.service.v235
endif
ifeq ($(shell test ${DEB_TARGET_ARCH} != "amd64" && echo "1"), 1)