Skip to content

Commit

Permalink
Update database_configuration.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealHaoLiu committed Mar 13, 2024
1 parent 1ba118d commit 2787bb8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion roles/installer/tasks/database_configuration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,11 @@
pod: "{{ old_postgres_pod['metadata']['name'] }}"
command: |
bash -c """
cat {{ path_to_pg_version }}
if [ -f {{ path_to_pg_version }} ]; then
cat {{ path_to_pg_version }}
elif [ -f '/var/lib/postgresql/data/pgdata/PG_VERSION' ]; then
cat '/var/lib/postgresql/data/pgdata/PG_VERSION'
fi
"""
register: _old_pg_version

Expand Down

0 comments on commit 2787bb8

Please sign in to comment.