Skip to content

Commit

Permalink
fix: reorder statements to avoid version-dependent syntax
Browse files Browse the repository at this point in the history
Signed-off-by: Jaime Silvela <[email protected]>
  • Loading branch information
jsilvela committed Oct 29, 2024
1 parent 65fbbce commit a8b3482
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions UBI/Dockerfile-postgis-multiarch.template
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ RUN --mount=type=secret,id=cs_token \
pg_squeeze_pkg="edb-pg%%PG_MAJOR%%-pg-squeeze1" ; \
pgvector="edb-pg%%PG_MAJOR%%-pgvector0" ; \
pg_audit_pkg="edb-pg%%PG_MAJOR%%-pgaudit1" ; \
if [ "%%PG_MAJOR%%" -gt "15" ]; then pg_audit_pkg="edb-pg%%PG_MAJOR%%-pgaudit%%PG_MAJOR%%"; fi ; \
wal2json_pkg="edb-pg%%PG_MAJOR%%-wal2json2" ;; \
wal2json_pkg="edb-pg%%PG_MAJOR%%-wal2json2" ; \
if [ "%%PG_MAJOR%%" -gt "15" ]; then pg_audit_pkg="edb-pg%%PG_MAJOR%%-pgaudit%%PG_MAJOR%%"; fi ;; \
s390x) \
curl -u token:$(cat /run/secrets/cs_token) -1sLf https://downloads.enterprisedb.com/basic/edb/setup.rpm.sh | bash ; \
pg_failover_slots_pkg="edb-pg%%PG_MAJOR%%-pg-failover-slots1" ; \
pg_squeeze_pkg="edb-pg%%PG_MAJOR%%-pg-squeeze1" ; \
pgvector="edb-pg%%PG_MAJOR%%-pgvector0" ; \
pg_audit_pkg="edb-pg%%PG_MAJOR%%-pgaudit1" ; \
if [ "%%PG_MAJOR%%" -gt "15" ]; then pg_audit_pkg="edb-pg%%PG_MAJOR%%-pgaudit%%PG_MAJOR%%"; fi ; \
wal2json_pkg="edb-pg%%PG_MAJOR%%-wal2json2" ;; \
wal2json_pkg="edb-pg%%PG_MAJOR%%-wal2json2" ; \
if [ "%%PG_MAJOR%%" -gt "15" ]; then pg_audit_pkg="edb-pg%%PG_MAJOR%%-pgaudit%%PG_MAJOR%%"; fi ;; \
*) \
exit 1 ;; \
esac ; \
Expand Down

0 comments on commit a8b3482

Please sign in to comment.