lemmy/scripts/postgres_12_to_15_upgrade.sh

9 lines
237 B
Bash
Raw Permalink Normal View History

#!/bin/sh
set -e
echo "Updating docker-compose to use postgres version 16."
sudo sed -i "s/image: .*postgres:.*/image: pgautoupgrade\/pgautoupgrade:16-alpine/" ./docker-compose.yml
echo "Starting up lemmy..."
sudo docker-compose up -d