From 6d3802c4e2d3c49e08faf045cfa2d137d2e0b4b9 Mon Sep 17 00:00:00 2001 From: casjay Date: Sun, 30 Nov 2025 16:08:54 -0500 Subject: [PATCH] =?UTF-8?q?...=F0=9F=93=9D=20Refactor=20entrypoint.sh=20sc?= =?UTF-8?q?ript=20for=20improved=20functionality=20and=20effici...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rootfs/usr/local/etc/docker/functions/entrypoint.sh --- rootfs/usr/local/etc/docker/functions/entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rootfs/usr/local/etc/docker/functions/entrypoint.sh b/rootfs/usr/local/etc/docker/functions/entrypoint.sh index 4a2f6c5..3780b13 100644 --- a/rootfs/usr/local/etc/docker/functions/entrypoint.sh +++ b/rootfs/usr/local/etc/docker/functions/entrypoint.sh @@ -642,8 +642,8 @@ __create_service_user() { [ -d "$(dirname "$log_file")" ] || mkdir -p "$(dirname "$log_file")" 2>/dev/null # Validate that we have at least a user or group to create if [ -z "$create_user" ] && [ -z "$create_group" ]; then - echo "Error: No user or group specified to create" >&2 - return 1 + echo "No user or group specified to create" >&2 + return 0 fi # Validate user/group name format (alphanumeric, underscore, hyphen; must start with letter or underscore) if [ -n "$create_user" ] && ! echo "$create_user" | grep -qE '^[a-z_][a-z0-9_-]*$'; then