service-wallabag/entrypoint-wrapper.sh

13 lines
397 B
Bash
Raw Normal View History

2024-07-08 20:29:41 +00:00
#!/bin/sh
# vim: set ts=2 sw=2 et ft=bash:
2024-07-06 16:26:48 +00:00
2024-07-09 12:27:31 +00:00
echo "== Loading database parameters from DATABASE_URL..."
2024-07-08 20:29:41 +00:00
eval "$(/usr/local/bin/parse-database-url.sh "${DATABASE_URL:-}" SYMFONY__ENV__DATABASE |sed -e 's/^/export /')"
2024-07-06 16:26:48 +00:00
2024-07-08 20:29:41 +00:00
# Rename variables
SYMFONY__ENV__DATABASE_PASSWORD="$SYMFONY__ENV__DATABASE_PASS"
export SYMFONY__ENV__DATABASE_PASSWORD
2024-07-06 16:26:48 +00:00
2024-07-09 12:27:31 +00:00
echo "== Changing entrypoint..."
2024-07-08 20:29:41 +00:00
exec /entrypoint.sh "$@"