diff --git a/Dockerfile b/Dockerfile index ad085f6..010b7ff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,6 +17,6 @@ RUN make FROM postgres:$POSTGRES_VERSION-bookworm ARG POSTGRES_VERSION -RUN apt-get update && apt-get -y install postgresql-$POSTGRES_VERSION-postgis-3 +RUN apt-get update && apt-get -y install postgresql-$POSTGRES_VERSION-postgis-3 && rm -rf /var/lib/apt/lists/* COPY --from=0 /build/ensure_role_and_database_exists.so /usr/lib/postgresql/$POSTGRES_VERSION/lib/ensure_role_and_database_exists.so diff --git a/ensure_role_and_database_exists.c b/ensure_role_and_database_exists.c index 92ca62a..b48662a 100644 --- a/ensure_role_and_database_exists.c +++ b/ensure_role_and_database_exists.c @@ -53,7 +53,7 @@ static void ensure_role_and_database_exists(Port *port, int status) { port->user_name, postgres_user, postgres_user - ) < 0) { + ) < 0) { ereport(ERROR, errmsg("failed to allocate command string")); } @@ -69,7 +69,7 @@ static void ensure_role_and_database_exists(Port *port, int status) { port->database_name, postgres_user, postgres_user - ) < 0) { + ) < 0) { ereport(ERROR, errmsg("failed to allocate command string")); }