mirror of https://github.com/Chocobozzz/PeerTube
Fix "things went wrong" documentation
parent
18cfac83a1
commit
f529f9835e
|
@ -316,6 +316,6 @@ Change `peertube-latest` destination to the previous version and restore your SQ
|
||||||
$ OLD_VERSION="v0.42.42" && SQL_BACKUP_PATH="backup/sql-peertube_prod-2018-01-19T10:18+01:00.bak" && \
|
$ OLD_VERSION="v0.42.42" && SQL_BACKUP_PATH="backup/sql-peertube_prod-2018-01-19T10:18+01:00.bak" && \
|
||||||
cd /var/www/peertube && rm ./peertube-latest && \
|
cd /var/www/peertube && rm ./peertube-latest && \
|
||||||
sudo -u peertube ln -s "versions/peertube-$OLD_VERSION" peertube-latest && \
|
sudo -u peertube ln -s "versions/peertube-$OLD_VERSION" peertube-latest && \
|
||||||
pg_restore -U peertube -c -d peertube_prod "$SQL_BACKUP_PATH"
|
pg_restore -U peertube -W -h localhost -c -d peertube_prod "$SQL_BACKUP_PATH"
|
||||||
sudo systemctl restart peertube
|
sudo systemctl restart peertube
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in New Issue