Implement 5036: more readable diff on configuration file when upgrading.
This commit is contained in:
parent
92148a7a39
commit
7f6ff46222
|
@ -78,7 +78,8 @@ ln -s "$PEERTUBE_PATH/versions/peertube-${VERSION}" $PEERTUBE_PATH/peertube-late
|
||||||
cp $PEERTUBE_PATH/peertube-latest/config/default.yaml $PEERTUBE_PATH/config/default.yaml
|
cp $PEERTUBE_PATH/peertube-latest/config/default.yaml $PEERTUBE_PATH/config/default.yaml
|
||||||
|
|
||||||
echo "Differences in configuration files..."
|
echo "Differences in configuration files..."
|
||||||
diff -u $PEERTUBE_PATH/config/production.yaml "$PEERTUBE_PATH/versions/peertube-${VERSION}/config/production.yaml.example"
|
cd $PEERTUBE_PATH/versions
|
||||||
|
diff -u "$(ls --sort=t | head -2 | tail -1)/config/production.yaml.example" "$(ls --sort=t | head -1)/config/production.yaml.example"
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo "==========================================="
|
echo "==========================================="
|
||||||
|
|
|
@ -339,6 +339,15 @@ $ cd /var/www/peertube && \
|
||||||
sudo -u peertube ln -s versions/peertube-${VERSION} ./peertube-latest
|
sudo -u peertube ln -s versions/peertube-${VERSION} ./peertube-latest
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Configuration
|
||||||
|
|
||||||
|
You can check for configuration changes, and report them in your `config/production.yaml` file:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
$ cd /var/www/peertube/versions
|
||||||
|
$ diff -u "$(ls --sort=t | head -2 | tail -1)/config/production.yaml.example" "$(ls --sort=t | head -1)/config/production.yaml.example"
|
||||||
|
```
|
||||||
|
|
||||||
### nginx
|
### nginx
|
||||||
|
|
||||||
Check changes in nginx configuration:
|
Check changes in nginx configuration:
|
||||||
|
|
Loading…
Reference in New Issue