deflogin: treat no users as a warning

There could be root-only VM appliances, for example,
and ROOTPW is now handled through this feature.
This commit is contained in:
Michael Shigorin 2014-11-20 13:51:11 +03:00
parent 4cb875cc5b
commit 1445ff423b

View File

@ -2,7 +2,10 @@
# issue welcome message if there's a guest user
# (the first one configured with empty password)
[ -n "$GLOBAL_USERS" ] || exit 1
[ -n "$GLOBAL_USERS" ] || {
echo "** 50-issue: warning, no users created" >&1
exit 0
}
guest=
for u in $GLOBAL_USERS; do