parent
762e079370
commit
916a840510
|
|
@ -77,7 +77,11 @@ if [ "$1" = 'postgres' ]; then
|
||||||
for f in /docker-entrypoint-initdb.d/*; do
|
for f in /docker-entrypoint-initdb.d/*; do
|
||||||
case "$f" in
|
case "$f" in
|
||||||
*.sh) echo "$0: running $f"; . "$f" ;;
|
*.sh) echo "$0: running $f"; . "$f" ;;
|
||||||
*.sql) echo "$0: running $f"; psql --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" < "$f" && echo ;;
|
*.sql)
|
||||||
|
echo "$0: running $f";
|
||||||
|
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" < "$f"
|
||||||
|
echo
|
||||||
|
;;
|
||||||
*) echo "$0: ignoring $f" ;;
|
*) echo "$0: ignoring $f" ;;
|
||||||
esac
|
esac
|
||||||
echo
|
echo
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,11 @@ if [ "$1" = 'postgres' ]; then
|
||||||
for f in /docker-entrypoint-initdb.d/*; do
|
for f in /docker-entrypoint-initdb.d/*; do
|
||||||
case "$f" in
|
case "$f" in
|
||||||
*.sh) echo "$0: running $f"; . "$f" ;;
|
*.sh) echo "$0: running $f"; . "$f" ;;
|
||||||
*.sql) echo "$0: running $f"; psql --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" < "$f" && echo ;;
|
*.sql)
|
||||||
|
echo "$0: running $f";
|
||||||
|
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" < "$f"
|
||||||
|
echo
|
||||||
|
;;
|
||||||
*) echo "$0: ignoring $f" ;;
|
*) echo "$0: ignoring $f" ;;
|
||||||
esac
|
esac
|
||||||
echo
|
echo
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,11 @@ if [ "$1" = 'postgres' ]; then
|
||||||
for f in /docker-entrypoint-initdb.d/*; do
|
for f in /docker-entrypoint-initdb.d/*; do
|
||||||
case "$f" in
|
case "$f" in
|
||||||
*.sh) echo "$0: running $f"; . "$f" ;;
|
*.sh) echo "$0: running $f"; . "$f" ;;
|
||||||
*.sql) echo "$0: running $f"; psql --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" < "$f" && echo ;;
|
*.sql)
|
||||||
|
echo "$0: running $f";
|
||||||
|
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" < "$f"
|
||||||
|
echo
|
||||||
|
;;
|
||||||
*) echo "$0: ignoring $f" ;;
|
*) echo "$0: ignoring $f" ;;
|
||||||
esac
|
esac
|
||||||
echo
|
echo
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,11 @@ if [ "$1" = 'postgres' ]; then
|
||||||
for f in /docker-entrypoint-initdb.d/*; do
|
for f in /docker-entrypoint-initdb.d/*; do
|
||||||
case "$f" in
|
case "$f" in
|
||||||
*.sh) echo "$0: running $f"; . "$f" ;;
|
*.sh) echo "$0: running $f"; . "$f" ;;
|
||||||
*.sql) echo "$0: running $f"; psql --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" < "$f" && echo ;;
|
*.sql)
|
||||||
|
echo "$0: running $f";
|
||||||
|
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" < "$f"
|
||||||
|
echo
|
||||||
|
;;
|
||||||
*) echo "$0: ignoring $f" ;;
|
*) echo "$0: ignoring $f" ;;
|
||||||
esac
|
esac
|
||||||
echo
|
echo
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,11 @@ if [ "$1" = 'postgres' ]; then
|
||||||
for f in /docker-entrypoint-initdb.d/*; do
|
for f in /docker-entrypoint-initdb.d/*; do
|
||||||
case "$f" in
|
case "$f" in
|
||||||
*.sh) echo "$0: running $f"; . "$f" ;;
|
*.sh) echo "$0: running $f"; . "$f" ;;
|
||||||
*.sql) echo "$0: running $f"; psql --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" < "$f" && echo ;;
|
*.sql)
|
||||||
|
echo "$0: running $f";
|
||||||
|
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" < "$f"
|
||||||
|
echo
|
||||||
|
;;
|
||||||
*) echo "$0: ignoring $f" ;;
|
*) echo "$0: ignoring $f" ;;
|
||||||
esac
|
esac
|
||||||
echo
|
echo
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,11 @@ if [ "$1" = 'postgres' ]; then
|
||||||
for f in /docker-entrypoint-initdb.d/*; do
|
for f in /docker-entrypoint-initdb.d/*; do
|
||||||
case "$f" in
|
case "$f" in
|
||||||
*.sh) echo "$0: running $f"; . "$f" ;;
|
*.sh) echo "$0: running $f"; . "$f" ;;
|
||||||
*.sql) echo "$0: running $f"; psql --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" < "$f" && echo ;;
|
*.sql)
|
||||||
|
echo "$0: running $f";
|
||||||
|
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" < "$f"
|
||||||
|
echo
|
||||||
|
;;
|
||||||
*) echo "$0: ignoring $f" ;;
|
*) echo "$0: ignoring $f" ;;
|
||||||
esac
|
esac
|
||||||
echo
|
echo
|
||||||
|
|
|
||||||
|
|
@ -77,7 +77,11 @@ if [ "$1" = 'postgres' ]; then
|
||||||
for f in /docker-entrypoint-initdb.d/*; do
|
for f in /docker-entrypoint-initdb.d/*; do
|
||||||
case "$f" in
|
case "$f" in
|
||||||
*.sh) echo "$0: running $f"; . "$f" ;;
|
*.sh) echo "$0: running $f"; . "$f" ;;
|
||||||
*.sql) echo "$0: running $f"; psql --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" < "$f" && echo ;;
|
*.sql)
|
||||||
|
echo "$0: running $f";
|
||||||
|
psql -v ON_ERROR_STOP=1 --username "$POSTGRES_USER" --dbname "$POSTGRES_DB" < "$f"
|
||||||
|
echo
|
||||||
|
;;
|
||||||
*) echo "$0: ignoring $f" ;;
|
*) echo "$0: ignoring $f" ;;
|
||||||
esac
|
esac
|
||||||
echo
|
echo
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue