bitnami-containers/.vib/postgresql/goss/postgresql.yaml

22 lines
726 B
YAML

# Copyright Broadcom, Inc. All Rights Reserved.
# SPDX-License-Identifier: APACHE-2.0
command:
# If the patch version is "0" the version is shown as "major.minor" without the patch version.
# In that case we append .0 to the version to match with APP_VERSION
check-version:
exec: {{ .Vars.version.bin_name }} {{ .Vars.version.flag }} | awk '{ if (split($NF, ver, ".") == 2) { $NF = $NF ".0" } print }'
stdout:
- "{{ .Env.APP_VERSION }}"
exit-status: 0
file:
/opt/bitnami/postgresql/logs/postgresql.log:
exists: true
filetype: symlink
linked-to: /dev/stdout
/opt/bitnami/postgresql/conf/postgresql.conf:
exists: true
mode: "0664"
contents:
- /^include_dir = 'conf.d'/