Fixing sed command for postgres upgrade. (#4791)

- Context: https://github.com/LemmyNet/lemmy-ansible/issues/245
This commit is contained in:
Dessalines 2024-06-07 12:39:23 -04:00 committed by GitHub
parent 9236cf7d21
commit b2a480f55c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,7 +24,7 @@ echo "Removing the old postgres folder"
sudo rm -rf volumes/postgres sudo rm -rf volumes/postgres
echo "Updating docker compose to use postgres version 16." echo "Updating docker compose to use postgres version 16."
sudo sed -i "s/image: .*postgres:.*/image: docker.io/postgres:16-alpine/" ./docker-compose.yml sudo sed -i "s/image: .*postgres:.*/image: docker.io\/postgres:16-alpine/" ./docker-compose.yml
echo "Starting up new postgres..." echo "Starting up new postgres..."
sudo docker compose up -d postgres sudo docker compose up -d postgres