Skip to content

Commit

Permalink
Updates scripts to check for postgresql-17 instead of postgresql-16 (#…
Browse files Browse the repository at this point in the history
…1132)

* Updates scripts to check for postgresql-17 instead of postgresql-16

* Updates rpm script to check for postgresql17-server instead of postgresql-17
  • Loading branch information
m3hm3t authored Feb 24, 2025
1 parent c63088a commit d716576
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions community/deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ curl_check ()

pgdg_check ()
{
echo "Checking for postgresql-16..."
if apt-cache show postgresql-16 &> /dev/null; then
echo "Detected postgresql-16..."
echo "Checking for postgresql-17..."
if apt-cache show postgresql-17 &> /dev/null; then
echo "Detected postgresql-17..."
else
pgdg_list='/etc/apt/sources.list.d/pgdg.list'
pgdg_source_path="deb http://apt.postgresql.org/pub/repos/apt/ ${codename}-pgdg main"
Expand Down
6 changes: 3 additions & 3 deletions community/rpm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ curl_check ()

pgdg_check ()
{
echo "Checking for postgresql16-server..."
if yum list -q postgresql16-server &> /dev/null; then
echo "Detected postgresql16-server..."
echo "Checking for postgresql17-server..."
if yum list -q postgresql17-server &> /dev/null; then
echo "Detected postgresql17-server..."
else
echo -n "Installing pgdg repo... "

Expand Down

0 comments on commit d716576

Please sign in to comment.