From a9600475640643994bd44e0efa3ec7dc8755946f Mon Sep 17 00:00:00 2001 From: Jesse Wierzbinski Date: Tue, 12 Mar 2024 07:42:57 -1000 Subject: [PATCH] Fix incorrect echo usage which cause bugs --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6f7eac0..4bc5649 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ RUN cd "$(mktemp -d)" \ && cp "$PG_MAJOR/pg_uuidv7.so" "$(pg_config --pkglibdir)" \ && cp sql/pg_uuidv7--1.3.sql pg_uuidv7.control "$(pg_config --sharedir)/extension" # 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 RUN chmod +x /docker-entrypoint-initdb.d/init.sh