mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-12 08:40:16 +00:00
notify-push & whiteboard: URL-encode passwords
Signed-off-by: Simon L. <szaimen@e.mail.de>
This commit is contained in:
parent
7f8be1bc3d
commit
84c581b8bf
4 changed files with 9 additions and 1 deletions
|
|
@ -11,6 +11,9 @@ if [ -z "$REDIS_DB_INDEX" ]; then
|
|||
REDIS_DB_INDEX=0
|
||||
fi
|
||||
|
||||
# URL-encode password
|
||||
REDIS_HOST_PASSWORD="$(jq -rn --arg v "$REDIS_HOST_PASSWORD" '$v|@uri')"
|
||||
|
||||
export REDIS_URL="redis://$REDIS_USER:$REDIS_HOST_PASSWORD@$REDIS_HOST:$REDIS_PORT/$REDIS_DB_INDEX"
|
||||
|
||||
# Run it
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue