Skip to content

Commit 28c8c81

Browse files
authored
v2.0.10 (#29)
Minor updates * Use if block instead of test to create POSTGRESQL_DATA_VERSION environment variable
1 parent 255f4f4 commit 28c8c81

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.0.9
1+
2.0.10

overlay/etc/bf/init.d/10-env

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,8 @@ bf-env "POSTGRESQL_BACKUP_FILENAME" "dump"
1919
bf-env "POSTGRESQL_RESTORE" "${POSTGRESQL_BACKUP}/restore.sql"
2020

2121
bf-env "POSTGRESQL_SERVER_VERSION" `cat /usr/libexec/postgresql/PG_VERSION`
22-
[[ -f "/data/PG_VERSION" ]] && bf-env "POSTGRESQL_DATA_VERSION" `cat /data/PG_VERSION`
22+
23+
PG_VERSION="/data/PG_VERSION"
24+
if [ -f "${PG_VERSION}" ]; then
25+
bf-env "POSTGRESQL_DATA_VERSION" `cat ${PG_VERSION}`
26+
fi

0 commit comments

Comments
 (0)