Logo
Explore Help
Sign In
1berry/lemmy
1
0
Fork 0
You've already forked lemmy
Code Issues Packages Projects Releases Wiki Activity
lemmy/scripts/postgres_15_to_16_upgrade.sh

9 lines
237 B
Bash
Raw Permalink Normal View History

Upgrading from postgres 15 -> 16-alpine. (#4426) - Includes an upgrade script. - Fixes #4406
2024-02-07 05:21:02 -05:00
#!/bin/sh
set -e
Switch PostgreSQL container to use pgautoupgrade (#4892) * Switch PostgreSQL container to use pgautoupgrade This handles automatically upgrading the data files to newer versions of PostgreSQL. * Fixing other uses of postgres:16-alpine image. * Simplifying upgrade scripts. --------- Co-authored-by: Dessalines <tyhou13@gmx.com>
2024-07-17 00:59:21 -07:00
echo "Updating docker-compose to use postgres version 16."
sudo sed -i "s/image: .*postgres:.*/image: pgautoupgrade\/pgautoupgrade:16-alpine/" ./docker-compose.yml
Upgrading from postgres 15 -> 16-alpine. (#4426) - Includes an upgrade script. - Fixes #4406
2024-02-07 05:21:02 -05:00
echo "Starting up lemmy..."
Switch PostgreSQL container to use pgautoupgrade (#4892) * Switch PostgreSQL container to use pgautoupgrade This handles automatically upgrading the data files to newer versions of PostgreSQL. * Fixing other uses of postgres:16-alpine image. * Simplifying upgrade scripts. --------- Co-authored-by: Dessalines <tyhou13@gmx.com>
2024-07-17 00:59:21 -07:00
sudo docker-compose up -d
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 295ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API