mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 05:56:16 +00:00
add postgresql 17 (#630)
This commit is contained in:
@ -65,6 +65,7 @@ private function databases(): void
|
|||||||
->label('PostgreSQL')
|
->label('PostgreSQL')
|
||||||
->handler(Postgresql::class)
|
->handler(Postgresql::class)
|
||||||
->versions([
|
->versions([
|
||||||
|
'17',
|
||||||
'16',
|
'16',
|
||||||
'15',
|
'15',
|
||||||
'14',
|
'14',
|
||||||
|
@ -0,0 +1,11 @@
|
|||||||
|
sudo sh -c 'echo "deb https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
|
||||||
|
|
||||||
|
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
|
||||||
|
|
||||||
|
sudo DEBIAN_FRONTEND=noninteractive apt-get update -y
|
||||||
|
|
||||||
|
sudo DEBIAN_FRONTEND=noninteractive apt-get install postgresql-17 -y
|
||||||
|
|
||||||
|
systemctl status postgresql
|
||||||
|
|
||||||
|
sudo -u postgres psql -c "SELECT version();"
|
Reference in New Issue
Block a user