From 24e5daf4f98aad6ebf4d97542e957b139377b1f5 Mon Sep 17 00:00:00 2001 From: Daniel De Graaf Date: Mon, 29 Mar 2010 18:51:32 -0500 Subject: Improve INSTUID error message --- make/template/main.mk | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'make/template/main.mk') 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 -- cgit v1.2.3