From 1445ff423bf01dfe9104b096f8dd954f1413c3f4 Mon Sep 17 00:00:00 2001 From: Michael Shigorin Date: Thu, 20 Nov 2014 13:51:11 +0300 Subject: [PATCH] deflogin: treat no users as a warning There could be root-only VM appliances, for example, and ROOTPW is now handled through this feature. --- features.in/deflogin/rootfs/image-scripts.d/50-issue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/features.in/deflogin/rootfs/image-scripts.d/50-issue b/features.in/deflogin/rootfs/image-scripts.d/50-issue index d85722bb..343aad9c 100755 --- a/features.in/deflogin/rootfs/image-scripts.d/50-issue +++ b/features.in/deflogin/rootfs/image-scripts.d/50-issue @@ -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