From 2519d9fec6f84906d1b10770be791ad367186ca7 Mon Sep 17 00:00:00 2001 From: LecygneNoir Date: Mon, 19 Feb 2018 09:42:43 +0100 Subject: add import-youtube guide inside documentation (#298) * add import-youtube guide inside documentation * safer to use unlink instead of rm to delete symbolic link, avoid risk of deleting entire directories in case of syntax error * spelling mistake corrections * anonymise URLs * git also needed as dependencies to run yarn install --- support/doc/production.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'support/doc/production.md') 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 -- cgit v1.2.3