summaryrefslogtreecommitdiff
path: root/make
diff options
context:
space:
mode:
authorDaniel De Graaf <danieldg@inspircd.org>2010-03-29 18:51:32 -0500
committerDaniel De Graaf <danieldg@inspircd.org>2010-03-29 18:51:32 -0500
commit24e5daf4f98aad6ebf4d97542e957b139377b1f5 (patch)
treea40c22c16d64239d1b1f70993199ebd507ddf3bc /make
parentfcdfe35a312fef4e12fa628c51a302582bf1e823 (diff)
Improve INSTUID error message
Diffstat (limited to 'make')
-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