Forgot to add a chown command for docker restore. (#192)

* Forgot to add a chown command for docker restore.

* Add depending on system.
This commit is contained in:
Dessalines 2023-06-08 16:30:20 -04:00 committed by GitHub
parent cfbd68c500
commit fbc29da8b3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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, depending on your system.
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: