From 48ee5774b7e195b19841fc748ab4fb232790173d Mon Sep 17 00:00:00 2001 From: Simon L Date: Mon, 26 Jun 2023 15:56:38 +0200 Subject: [PATCH] rework notify-push in order to export values as env Signed-off-by: Simon L --- Containers/notify-push/start.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Containers/notify-push/start.sh b/Containers/notify-push/start.sh index 8d10e097..c20b9c0d 100644 --- a/Containers/notify-push/start.sh +++ b/Containers/notify-push/start.sh @@ -27,12 +27,14 @@ elif [ "$CPU_ARCH" != "x86_64" ]; then export CPU_ARCH="aarch64" fi +# Set sensitive values as env +export DATABASE_URL="postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@$POSTGRES_HOST/$POSTGRES_DB" +export REDIS_URL="redis://:$REDIS_HOST_PASSWORD@$REDIS_HOST" + # Run it /nextcloud/custom_apps/notify_push/bin/"$CPU_ARCH"/notify_push \ --database-prefix="oc_" \ --nextcloud-url "https://$NC_DOMAIN" \ - --port 7867 \ - --redis-url "redis://:$REDIS_HOST_PASSWORD@$REDIS_HOST" \ - --database-url "postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@$POSTGRES_HOST/$POSTGRES_DB" + --port 7867 exec "$@"