]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/upgrade.sh
Translated using Weblate (Toki Pona (tok))
[github/Chocobozzz/PeerTube.git] / scripts / upgrade.sh
index 9c17aecb89da629499e1da94a756e80446fdf730..e70576285bef4e30c8049b0b0a28ce6a56703fde 100755 (executable)
@@ -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
 
 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 "==========================================="