From cbf579df188588428ddf1758afac088e1c8b7b00 Mon Sep 17 00:00:00 2001 From: Zoey Date: Thu, 10 Nov 2022 20:40:22 +0100 Subject: [PATCH] fix regex syntax I forgot, that the "-" must be at the end of the regex Signed-off-by: Zoey --- Containers/mastercontainer/start.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Containers/mastercontainer/start.sh b/Containers/mastercontainer/start.sh index c41fd995..7c0276de 100644 --- a/Containers/mastercontainer/start.sh +++ b/Containers/mastercontainer/start.sh @@ -186,7 +186,7 @@ It is set to '$NEXTCLOUD_STARTUP_APPS'." fi fi if [ -n "$NEXTCLOUD_ADDITIONAL_APKS" ]; then - if ! echo "$NEXTCLOUD_ADDITIONAL_APKS" | grep -q "^[a-z0-9 _-.]\+$"; then + if ! echo "$NEXTCLOUD_ADDITIONAL_APKS" | grep -q "^[a-z0-9 ._-]\+$"; then echo "You've set NEXTCLOUD_ADDITIONAL_APKS but not to an allowed value. It needs to be a string. Allowed are small letters a-z, digits 0-9, spaces, hyphens, dots and '_'. It is set to '$NEXTCLOUD_ADDITIONAL_APKS'." @@ -194,7 +194,7 @@ It is set to '$NEXTCLOUD_ADDITIONAL_APKS'." fi fi if [ -n "$NEXTCLOUD_ADDITIONAL_PHP_EXTENSIONS" ]; then - if ! echo "$NEXTCLOUD_ADDITIONAL_PHP_EXTENSIONS" | grep -q "^[a-z0-9 _-.]\+$"; then + if ! echo "$NEXTCLOUD_ADDITIONAL_PHP_EXTENSIONS" | grep -q "^[a-z0-9 ._-]\+$"; then echo "You've set NEXTCLOUD_ADDITIONAL_PHP_EXTENSIONS but not to an allowed value. It needs to be a string. Allowed are small letters a-z, digits 0-9, spaces, hyphens, dots and '_'. It is set to '$NEXTCLOUD_ADDITIONAL_PHP_EXTENSIONS'."