From 30fcf79d69292e8bb2ef37526884f17a6ce800a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Floure?= Date: Thu, 23 Jan 2020 20:51:03 +0100 Subject: [PATCH] Use systemctl binary presence to decide which init configuration to deploy --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index b75c9c8..78645e9 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ all: install install: install -m 755 bin/uncloud-init $(PREFIX)/bin/uncloud-init install -m 755 bin/uncloud-init-growpart $(PREFIX)/bin/uncloud-init-growpart - if command -v systemd; then \ + if command -v systemctl; then \ install -m 644 uncloud-init.service /etc/systemd/system/uncloud-init.service; \ else \ install -m 755 uncloud-init.rc /etc/init.d/uncloud-init; \