Ignore when useradd throws an error because it cannot handle

-k /dev/null
(happens at least in Suse distributions)
This commit is contained in:
Pierre Labastie 2013-01-29 17:53:28 +00:00
parent f6ac40603a
commit 9dd4cccfb0

View file

@ -29,7 +29,7 @@ chapter4_Makefiles() { #
021-addinguser: 020-creatingtoolsdir
@\$(call echo_message, Building)
@if [ ! -d \$(LUSER_HOME) ]; then \\
@-if [ ! -d \$(LUSER_HOME) ]; then \\
groupadd \$(LGROUP); \\
useradd -s /bin/bash -g \$(LGROUP) -m -k /dev/null \$(LUSER); \\
else \\