mirror of
https://github.com/nextcloud/all-in-one.git
synced 2024-09-21 07:16:09 +08:00
Merge pull request #2869 from nextcloud/enh/2830/rework-notify-push
rework notify-push in order to export values as env
This commit is contained in:
commit
0c2905b658
|
@ -27,12 +27,14 @@ elif [ "$CPU_ARCH" != "x86_64" ]; then
|
||||||
export CPU_ARCH="aarch64"
|
export CPU_ARCH="aarch64"
|
||||||
fi
|
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
|
# Run it
|
||||||
/nextcloud/custom_apps/notify_push/bin/"$CPU_ARCH"/notify_push \
|
/nextcloud/custom_apps/notify_push/bin/"$CPU_ARCH"/notify_push \
|
||||||
--database-prefix="oc_" \
|
--database-prefix="oc_" \
|
||||||
--nextcloud-url "https://$NC_DOMAIN" \
|
--nextcloud-url "https://$NC_DOMAIN" \
|
||||||
--port 7867 \
|
--port 7867
|
||||||
--redis-url "redis://:$REDIS_HOST_PASSWORD@$REDIS_HOST" \
|
|
||||||
--database-url "postgres://$POSTGRES_USER:$POSTGRES_PASSWORD@$POSTGRES_HOST/$POSTGRES_DB"
|
|
||||||
|
|
||||||
exec "$@"
|
exec "$@"
|
||||||
|
|
Loading…
Reference in a new issue