mirror of
https://github.com/versia-pub/postgres.git
synced 2025-12-06 06:58:20 +01:00
Fix incorrect echo usage which cause bugs
This commit is contained in:
parent
fbf508e29b
commit
a960047564
|
|
@ -15,7 +15,7 @@ RUN cd "$(mktemp -d)" \
|
||||||
&& cp "$PG_MAJOR/pg_uuidv7.so" "$(pg_config --pkglibdir)" \
|
&& cp "$PG_MAJOR/pg_uuidv7.so" "$(pg_config --pkglibdir)" \
|
||||||
&& cp sql/pg_uuidv7--1.3.sql pg_uuidv7.control "$(pg_config --sharedir)/extension"
|
&& cp sql/pg_uuidv7--1.3.sql pg_uuidv7.control "$(pg_config --sharedir)/extension"
|
||||||
# Add a script to run the CREATE EXTENSION command
|
# Add a script to run the CREATE EXTENSION command
|
||||||
RUN echo '#!/bin/sh\npsql -U "$POSTGRES_USER" -d "$POSTGRES_DB" -c "CREATE EXTENSION pg_uuidv7;"' > /docker-entrypoint-initdb.d/init.sh
|
RUN printf '#!/bin/sh\npsql -U "$POSTGRES_USER" -d "$POSTGRES_DB" -c "CREATE EXTENSION pg_uuidv7;"' > /docker-entrypoint-initdb.d/init.sh
|
||||||
|
|
||||||
# Make the entrypoint script executable
|
# Make the entrypoint script executable
|
||||||
RUN chmod +x /docker-entrypoint-initdb.d/init.sh
|
RUN chmod +x /docker-entrypoint-initdb.d/init.sh
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue