Changeset View
Changeset View
Standalone View
Standalone View
docker/services/swh-storage/entrypoint.sh
Show All 18 Lines | |||||
EOF | EOF | ||||
fi | fi | ||||
case "$1" in | case "$1" in | ||||
"shell") | "shell") | ||||
exec bash -i | exec bash -i | ||||
;; | ;; | ||||
"swh") | |||||
shift | |||||
echo "Running swh command $@" | |||||
exec swh $@ | |||||
;; | |||||
*) | *) | ||||
if [ "$STORAGE_BACKEND" = "postgresql" ]; then | if [ "$STORAGE_BACKEND" = "postgresql" ]; then | ||||
wait_pgsql ${POSTGRES_DB} | wait_pgsql ${POSTGRES_DB} | ||||
echo Database setup | echo Database setup | ||||
echo Creating extensions... | echo Creating extensions... | ||||
swh db init-admin --db-name ${POSTGRES_DB} storage | swh db init-admin --db-name ${POSTGRES_DB} storage | ||||
Show All 18 Lines |