Skip to content

Commit 2cc31e6

Browse files
fix timescaledb being picked up from apt
We want timescaledb packages from dedicated repo, where we have all versions
1 parent 2ca7077 commit 2cc31e6

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

install_pg_extensions.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,7 @@ set -euxo pipefail
66
# install extensions
77
EXTENSIONS="$@"
88
# cycle through extensions list
9-
for EXTENSION in ${EXTENSIONS}; do
10-
# is it an extension found in apt?
11-
if apt-cache show "postgresql-${PG_MAJOR}-${EXTENSION}" &> /dev/null; then
12-
# install the extension
13-
apt-get install -y "postgresql-${PG_MAJOR}-${EXTENSION}"
14-
continue
15-
fi
16-
9+
for EXTENSION in ${EXTENSIONS}; do
1710
# special case: timescaledb
1811
if [ "$EXTENSION" == "timescaledb" ]; then
1912
# dependencies
@@ -41,6 +34,13 @@ for EXTENSION in ${EXTENSIONS}; do
4134
continue
4235
fi
4336

37+
# is it an extension found in apt?
38+
if apt-cache show "postgresql-${PG_MAJOR}-${EXTENSION}" &> /dev/null; then
39+
# install the extension
40+
apt-get install -y "postgresql-${PG_MAJOR}-${EXTENSION}"
41+
continue
42+
fi
43+
4444
# extension not found/supported
4545
echo "Extension '${EXTENSION}' not found/supported"
4646
exit 1

0 commit comments

Comments
 (0)