File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -6,14 +6,7 @@ set -euxo pipefail
6
6
# install extensions
7
7
EXTENSIONS=" $@ "
8
8
# 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
17
10
# special case: timescaledb
18
11
if [ " $EXTENSION " == " timescaledb" ]; then
19
12
# dependencies
@@ -41,6 +34,13 @@ for EXTENSION in ${EXTENSIONS}; do
41
34
continue
42
35
fi
43
36
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
+
44
44
# extension not found/supported
45
45
echo " Extension '${EXTENSION} ' not found/supported"
46
46
exit 1
You can’t perform that action at this time.
0 commit comments