Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Commit

Permalink
Fix typo and path in docker scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
automainint committed Jul 16, 2024
1 parent 78f1643 commit f23b568
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ ENV MERITRANK_SERVICE_URL=tcp://127.0.0.1:10234
ENV MERITRANK_RECV_TIMEOUT_MSEC=10000

COPY --from=compile /usr/project/target/release/pgmer2-pg16/usr/lib/postgresql16/pgmer2.so /usr/local/lib/postgresql/pgmer2.so
COPY --from=compile extension /usr/local/share/postgresql/extension
COPY --from=compile /usr/project/extension /usr/local/share/postgresql/extension
COPY 20_pgmer2.sh /docker-entrypoint-initdb.d/20_pgmer2.sh
2 changes: 1 addition & 1 deletion generate_scripts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ VER=$( cargo read-manifest | jq -r '.version' )
VER0=$( echo $VER | awk -F. -v OFS=. '{$NF -= 1; print}' )
VER1=$( echo $VER | awk -F. -v OFS=. '{$NF -= 2; print}' )
VER2=$( echo $VER | awk -F. -v OFS=. '{$NF -= 3; print}' )
VER2=$( echo $VER | awk -F. -v OFS=. '{$NF -= 4; print}' )
VER3=$( echo $VER | awk -F. -v OFS=. '{$NF -= 4; print}' )

[ -d extension ] || mkdir extension
sed 's/CREATE FUNCTION/CREATE OR REPLACE FUNCTION/g' "$FOLDER/pgmer2--$VER.sql" > "extension/pgmer2--$VER.sql"
Expand Down

0 comments on commit f23b568

Please sign in to comment.