X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=support%2Fdoc%2Fproduction.md;h=6d6cd68f8c807287d1e15ddb39ecdaaf5dbe4b80;hb=1263fc4e6eff9ba4bf4c706c6e37c2e556bf8eb5;hp=fc2bd460ac0d0f9fe5f2efde83f80200a8777102;hpb=0b4957126899975f603038501337421f84bcb3e4;p=github%2FChocobozzz%2FPeerTube.git diff --git a/support/doc/production.md b/support/doc/production.md index fc2bd460a..6d6cd68f8 100644 --- a/support/doc/production.md +++ b/support/doc/production.md @@ -202,7 +202,7 @@ Change the link to point to the latest version: ``` $ cd /var/www/peertube && \ - sudo rm ./peertube-latest && \ + sudo unlink ./peertube-latest && \ sudo -u peertube ln -s versions/peertube-${VERSION} ./peertube-latest ``` @@ -218,7 +218,7 @@ 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" && \ - cd /var/www/peertube && rm ./peertube-latest && \ + cd /var/www/peertube && unlink ./peertube-latest && \ sudo -u peertube ln -s "versions/peertube-$OLD_VERSION" peertube-latest && \ pg_restore -U peertube -W -h localhost -c -d peertube_prod "$SQL_BACKUP_PATH" sudo systemctl restart peertube