Forgot to add a chown command for docker restore.

This commit is contained in:
Dessalines 2023-06-08 08:29:23 -04:00
parent 189d8638d9
commit bedd67ee63

View file

@ -34,6 +34,13 @@ docker-compose up -d postgres
# Restore from the .sql.gz backup # Restore from the .sql.gz backup
gunzip < db_dump.sql | docker-compose exec -T postgres psql -U lemmy gunzip < db_dump.sql | docker-compose exec -T postgres psql -U lemmy
# Note: You may need to change the permissions on the postgres directory
chown -R $USER volumes
docker-compose restart postgres
# Continue with the startup
docker-compose up -d
``` ```
If you've accidentally already started the lemmy service, you need to clear out your existing database: If you've accidentally already started the lemmy service, you need to clear out your existing database: