diff options
-rwxr-xr-x | scripts/upgrade.sh | 3 | ||||
-rw-r--r-- | support/doc/production.md | 9 |
2 files changed, 11 insertions, 1 deletions
diff --git a/scripts/upgrade.sh b/scripts/upgrade.sh index 9c17aecb8..e70576285 100755 --- a/scripts/upgrade.sh +++ b/scripts/upgrade.sh | |||
@@ -78,7 +78,8 @@ ln -s "$PEERTUBE_PATH/versions/peertube-${VERSION}" $PEERTUBE_PATH/peertube-late | |||
78 | cp $PEERTUBE_PATH/peertube-latest/config/default.yaml $PEERTUBE_PATH/config/default.yaml | 78 | cp $PEERTUBE_PATH/peertube-latest/config/default.yaml $PEERTUBE_PATH/config/default.yaml |
79 | 79 | ||
80 | echo "Differences in configuration files..." | 80 | echo "Differences in configuration files..." |
81 | diff -u $PEERTUBE_PATH/config/production.yaml "$PEERTUBE_PATH/versions/peertube-${VERSION}/config/production.yaml.example" | 81 | cd $PEERTUBE_PATH/versions |
82 | diff -u "$(ls --sort=t | head -2 | tail -1)/config/production.yaml.example" "$(ls --sort=t | head -1)/config/production.yaml.example" | ||
82 | 83 | ||
83 | echo "" | 84 | echo "" |
84 | echo "===========================================" | 85 | echo "===========================================" |
diff --git a/support/doc/production.md b/support/doc/production.md index 6d7744b1f..ea0a98395 100644 --- a/support/doc/production.md +++ b/support/doc/production.md | |||
@@ -339,6 +339,15 @@ $ cd /var/www/peertube && \ | |||
339 | sudo -u peertube ln -s versions/peertube-${VERSION} ./peertube-latest | 339 | sudo -u peertube ln -s versions/peertube-${VERSION} ./peertube-latest |
340 | ``` | 340 | ``` |
341 | 341 | ||
342 | ### Configuration | ||
343 | |||
344 | You can check for configuration changes, and report them in your `config/production.yaml` file: | ||
345 | |||
346 | ```bash | ||
347 | $ cd /var/www/peertube/versions | ||
348 | $ diff -u "$(ls --sort=t | head -2 | tail -1)/config/production.yaml.example" "$(ls --sort=t | head -1)/config/production.yaml.example" | ||
349 | ``` | ||
350 | |||
342 | ### nginx | 351 | ### nginx |
343 | 352 | ||
344 | Check changes in nginx configuration: | 353 | Check changes in nginx configuration: |