Skip to content

Commit 39760b1

Browse files
authored
chore: fix variable name during fly init (#666)
* chore: fix variable name * chore: fix variable name
1 parent 932d7cc commit 39760b1

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

.github/workflows/dockerhub-release-aio.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Release AIO image on Dockerhub
33
on:
44
push:
55
branches:
6-
- pcnc/fly-fixes
6+
- pcnc/trigger-build
77
paths:
88
- ".github/workflows/dockerhub-release-aio.yml"
99
- "docker/all-in-one/*"

common.vars.pkr.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
postgres-version = "15.1.0.93"
1+
postgres-version = "15.1.0.92"

docker/all-in-one/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ RUN useradd --create-home --shell /bin/bash postgrest && \
221221
RUN mkdir -p /etc/wal-g && \
222222
chown -R adminapi:adminapi /etc/wal-g && \
223223
chmod g+w /etc/wal-g
224-
RUN mkdir -p /var/log/wal-g && chown -R postgres:postgres /var/log/wal-g && chmod +x /usr/bin/admin-mgr && chmod ug+s /usr/bin/admin-mgr && touch /etc/wal-g/config.json && chown adminapi:adminapi /etc/wal-g/config.json
224+
RUN mkdir -p /var/log/wal-g && chown -R postgres:postgres /var/log/wal-g && chmod +x /usr/bin/admin-mgr && chmod ug+s /usr/bin/admin-mgr && touch /etc/wal-g/config.json && chown adminapi:adminapi /etc/wal-g/config.json && echo '{}' > /etc/wal-g/config.json
225225
RUN chown -R adminapi:adminapi /etc/adminapi
226226

227227
# Add healthcheck and entrypoint scripts

docker/all-in-one/entrypoint.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,10 @@ fi
177177
export INIT_PAYLOAD_PATH=${INIT_PAYLOAD_PATH:-/tmp/payload.tar.gz}
178178

179179
if [ "${INIT_PAYLOAD_PRESIGNED_URL:-}" ]; then
180-
curl -fsSL "$INIT_PAYLOAD_PRESIGNED_URL" -o "/tmp/payload.tar.gz"
181-
mv "/tmp/payload.tar.gz" "$INIT_PAYLOAD_PATH"
180+
curl -fsSL "$INIT_PAYLOAD_PRESIGNED_URL" -o "/tmp/payload.tar.gz" || true
181+
if [ -f "/tmp/payload.tar.gz" ]; then
182+
mv "/tmp/payload.tar.gz" "$INIT_PAYLOAD_PATH"
183+
fi
182184
fi
183185

184186
if [ "${DATA_VOLUME_MOUNTPOINT}" ]; then
@@ -190,7 +192,7 @@ if [ "${DATA_VOLUME_MOUNTPOINT}" ]; then
190192
ln -s "${BASE_LOGS_FOLDER}/${folder}" "/var/log/${folder}"
191193
done
192194

193-
chown -R postgres:postgres "${LOGS_FOLDER}"
195+
chown -R postgres:postgres "${BASE_LOGS_FOLDER}"
194196
fi
195197

196198
# Process init payload

0 commit comments

Comments
 (0)