Upgrade.sh : Add diff command for config update (#308)
authorSVNET Libre <svnet@brique.svnet.fr>
Wed, 21 Feb 2018 16:16:52 +0000 (17:16 +0100)
committerChocobozzz <me@florianbigard.com>
Wed, 21 Feb 2018 16:16:52 +0000 (17:16 +0100)
* Add diff command for config update

* Add Context Information

"Updating Configuration File..."

* Modify context information for the config file

scripts/upgrade.sh

index e7c34a6b43dd2e378f8efce871ece12918c20a12..9baf50932c4d39393b2ab43514d24382b2ee424a 100755 (executable)
@@ -23,4 +23,7 @@ cd  /var/www/peertube/peertube-latest
 yarn install --production --pure-lockfile 
 cp /var/www/peertube/peertube-latest/config/default.yaml /var/www/peertube/config/default.yaml
 
+echo "Differences in configuration files..."
+diff /var/www/peertube/versions/peertube-${VERSION}/config/production.yaml.example /var/www/peertube/config/production.yaml
+
 exit 0