adjust wording of regex for NEXTCLOUD_DATADIR

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L 2023-03-25 09:56:34 +01:00
parent a68b00b126
commit 961f894372

View file

@ -98,7 +98,7 @@ if [ -n "$NEXTCLOUD_DATADIR" ]; then
echo "NEXTCLOUD_DATADIR is set to $NEXTCLOUD_DATADIR" echo "NEXTCLOUD_DATADIR is set to $NEXTCLOUD_DATADIR"
elif ! echo "$NEXTCLOUD_DATADIR" | grep -q "^/" || [ "$NEXTCLOUD_DATADIR" = "/" ]; then elif ! echo "$NEXTCLOUD_DATADIR" | grep -q "^/" || [ "$NEXTCLOUD_DATADIR" = "/" ]; then
echo "You've set NEXTCLOUD_DATADIR but not to an allowed value. echo "You've set NEXTCLOUD_DATADIR but not to an allowed value.
The string must start with '/' and must not be equal to '/'. The string must start with '/' and must not be equal to '/'. Also allowed is 'nextcloud_aio_nextcloud_datadir'.
It is set to '$NEXTCLOUD_DATADIR'." It is set to '$NEXTCLOUD_DATADIR'."
exit 1 exit 1
fi fi