Skip to content

Commit

Permalink
carry forward exit code of id command (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
olirice authored Jul 27, 2023
1 parent ca781d7 commit 29b7643
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/docker/Dockerfile.debian-artifact-build
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ RUN mkdir -p ${RELEASE_DIR}$HOME/.pgrx && \
RUN TOOLCHAIN_VER=$(</tmp/.toolchain-ver) && cat <<EOF > /tmp/preinst
#!/usr/bin/env bash

if ! id -u postgres 2&> /dev/null; then
if ! id -u postgres 2>&1 > /dev/null; then
echo "[!] User 'postgres' does not exist. Have the official Postgres packages been installed yet?"
exit 1
fi
Expand Down

0 comments on commit 29b7643

Please sign in to comment.