mirror of
https://github.com/casjaysdevdocker/ntfy
synced 2025-11-30 16:13:38 -05:00
🚀 Fix entrypoint script in docker functions 📁
All checks were successful
release-tag / release-image (push) Successful in 6m53s
All checks were successful
release-tag / release-image (push) Successful in 6m53s
rootfs/usr/local/etc/docker/functions/entrypoint.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user