aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 0e1ed6b2..0a3d1677 100644
--- a/Makefile
+++ b/Makefile
@@ -117,7 +117,7 @@ endif
install-systemd:
ifdef SYSTEMDSYSTEMUNITDIR
-ifeq ($(USER),root)
+ifeq ($(shell id -u),0)
mkdir -p $(DESTDIR)$(SYSTEMDSYSTEMUNITDIR)
install -m 0644 init/bitlbee.service $(DESTDIR)$(SYSTEMDSYSTEMUNITDIR)
install -m 0644 init/bitlbee@.service $(DESTDIR)$(SYSTEMDSYSTEMUNITDIR)