Fix incorrect echo usage which cause bugs

This commit is contained in:
Jesse Wierzbinski 2024-03-12 07:42:57 -10:00
parent fbf508e29b
commit a960047564
No known key found for this signature in database

View file

@ -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