diff options
author | Daniel De Graaf <danieldg@inspircd.org> | 2010-03-29 18:51:32 -0500 |
---|---|---|
committer | Daniel De Graaf <danieldg@inspircd.org> | 2010-03-29 18:51:32 -0500 |
commit | 24e5daf4f98aad6ebf4d97542e957b139377b1f5 (patch) | |
tree | a40c22c16d64239d1b1f70993199ebd507ddf3bc /make | |
parent | fcdfe35a312fef4e12fa628c51a302582bf1e823 (diff) |
Improve INSTUID error message
Diffstat (limited to 'make')
-rw-r--r-- | make/template/main.mk | 11 |
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 |