Commit 1445ff42 authored by Michael Shigorin's avatar Michael Shigorin

deflogin: treat no users as a warning

There could be root-only VM appliances, for example, and ROOTPW is now handled through this feature.
parent 4cb875cc
...@@ -2,7 +2,10 @@ ...@@ -2,7 +2,10 @@
# issue welcome message if there's a guest user # issue welcome message if there's a guest user
# (the first one configured with empty password) # (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= guest=
for u in $GLOBAL_USERS; do for u in $GLOBAL_USERS; do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment