File tree Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change @@ -120,19 +120,21 @@ if [ "$1" = 'postgres' ]; then
120
120
121
121
fi
122
122
123
- exec gosu postgres " $@ " &
124
- cd /home/
125
- git config --global http.sslVerify false
126
- git clone https://github.com/postgrespro/jsquery.git
127
- cd jsquery
128
-
129
- make USE_PGXS=1
130
- sudo -u postgres psql postgres -c " CREATE USER root WITH SUPERUSER PASSWORD '$POSTGRES_PASSWORD ';"
131
- sudo make USE_PGXS=1 install
132
-
133
- make USE_PGXS=1 installcheck
134
- psql postgres -c " CREATE EXTENSION jsquery;"
135
- gosu postgres pg_ctl -D " $PGDATA " -m fast -w stop
123
+ if [ ! -d " $DIRECTORY " ]; then
124
+ exec gosu postgres " $@ " &
125
+ cd /home/
126
+ git config --global http.sslVerify false
127
+ git clone https://github.com/postgrespro/jsquery.git
128
+ cd jsquery
129
+
130
+ make USE_PGXS=1
131
+ sudo -u postgres psql postgres -c " CREATE USER root WITH SUPERUSER PASSWORD '$POSTGRES_PASSWORD ';"
132
+ sudo make USE_PGXS=1 install
133
+
134
+ make USE_PGXS=1 installcheck
135
+ psql postgres -c " CREATE EXTENSION jsquery;"
136
+ gosu postgres pg_ctl -D " $PGDATA " -m fast -w stop
137
+ fi
136
138
fi
137
139
138
140
exec gosu postgres " $@ "
You can’t perform that action at this time.
0 commit comments