summaryrefslogtreecommitdiff
path: root/make/template
diff options
context:
space:
mode:
Diffstat (limited to 'make/template')
-rw-r--r--make/template/main.mk11
1 files changed, 10 insertions, 1 deletions
diff --git a/make/template/main.mk b/make/template/main.mk
index e24015ca9..cd00cfe19 100644
--- a/make/template/main.mk
+++ b/make/template/main.mk
@@ -158,7 +158,16 @@ finishmessage: target
@echo "*************************************"
install: target
- @if [ $(INSTUID) = 0 ]; then echo "You must specify a non-root uid for the server"; exit 1; fi
+ @if [ "$(INSTUID)" = 0 -o "$(INSTUID)" = root ]; then \
+ echo ""; \
+ echo "Error: You must specify a non-root UID for the server"; \
+ echo ""; \
+ echo "If you are making a package, please specify using ./configure --uid"; \
+ echo "Otherwise, rerun using 'make INSTUID=irc install', where 'irc' is the user"; \
+ echo "who will be running the ircd. You will also need to modify the start script."; \
+ echo ""; \
+ exit 1; \
+ fi
@-install -d -o $(INSTUID) -m $(INSTMODE_DIR) $(BASE)
@-install -d -o $(INSTUID) -m $(INSTMODE_DIR) $(BASE)/data
@-install -d -o $(INSTUID) -m $(INSTMODE_DIR) $(BASE)/logs