diff options
author | Chocobozzz <me@florianbigard.com> | 2018-02-14 11:09:02 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-02-14 16:03:09 +0100 |
commit | a8b5ce95f5e9cb71079e5d3606eab14f65d4b57a (patch) | |
tree | e7f41c21c375c3bc869324b1df36ae87b4150999 /support/doc | |
parent | ac81d1a06d57b9ae86663831e7f5edcef57b0fa4 (diff) | |
download | PeerTube-a8b5ce95f5e9cb71079e5d3606eab14f65d4b57a.tar.gz PeerTube-a8b5ce95f5e9cb71079e5d3606eab14f65d4b57a.tar.zst PeerTube-a8b5ce95f5e9cb71079e5d3606eab14f65d4b57a.zip |
Better upgrade script consistency
Diffstat (limited to 'support/doc')
-rw-r--r-- | support/doc/production.md | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/support/doc/production.md b/support/doc/production.md index e3187d481..06a51dedf 100644 --- a/support/doc/production.md +++ b/support/doc/production.md | |||
@@ -289,19 +289,17 @@ $ cd /var/www/peertube/peertube-latest && NODE_CONFIG_DIR=/var/www/peertube/conf | |||
289 | ``` | 289 | ``` |
290 | 290 | ||
291 | ## Upgrade | 291 | ## Upgrade |
292 | #### Auto | ||
293 | 292 | ||
294 | Via the bash Script : | 293 | #### Auto (minor versions only) |
295 | 294 | ||
296 | ``` | 295 | ``` |
297 | $ su - peertube | 296 | $ cd /var/www/peertube/peertube-latest/scripts && sudo -u peertube ./upgrade.sh |
298 | $ cd scripts && ./upgrade.sh | 297 | $ diff /var/www/peertube/versions/peertube-${VERSION}/config/production.yaml.example /var/www/peertube/config/production.yaml |
299 | $ exit | 298 | $ sudo systemctl restart peertube && sudo journalctl -fu peertube |
300 | $ systemctl restart peertube | ||
301 | $ systemctl status peertube | ||
302 | ``` | 299 | ``` |
303 | 300 | ||
304 | #### Manuel | 301 | #### Manually |
302 | |||
305 | Make a SQL backup | 303 | Make a SQL backup |
306 | 304 | ||
307 | ``` | 305 | ``` |
@@ -336,7 +334,7 @@ Copy new configuration defaults values and update your configuration file: | |||
336 | 334 | ||
337 | ``` | 335 | ``` |
338 | $ sudo -u peertube cp /var/www/peertube/versions/peertube-${VERSION}/config/default.yaml /var/www/peertube/config/default.yaml | 336 | $ sudo -u peertube cp /var/www/peertube/versions/peertube-${VERSION}/config/default.yaml /var/www/peertube/config/default.yaml |
339 | $ diff /var/www/peertube/versions/peertube-${VERSION}/config//production.yaml.example /var/www/peertube/config/production.yaml | 337 | $ diff /var/www/peertube/versions/peertube-${VERSION}/config/production.yaml.example /var/www/peertube/config/production.yaml |
340 | ``` | 338 | ``` |
341 | 339 | ||
342 | Change the link to point to the latest version: | 340 | Change the link to point to the latest version: |