10 lines
338 B
Bash
10 lines
338 B
Bash
#!/bin/sh
|
|
# Reads the admin password from the Docker secret and installs the LiveSync
|
|
# settings before handing over to the image's own entrypoint.
|
|
set -e
|
|
|
|
export COUCHDB_PASSWORD="$(cat /run/secrets/couchdb_password)"
|
|
cp /livesync.ini /opt/couchdb/etc/local.d/10-livesync.ini
|
|
|
|
exec tini -- /docker-entrypoint.sh /opt/couchdb/bin/couchdb
|