ActivityPub-federated video streaming platform using P2P directly in your web browser
Fix production.yaml.new config generation
Chocobozzz2d4274769eb5
diff --git a/server/scripts/upgrade.sh b/server/scripts/upgrade.shindex 39a6c4d7e8..6e72e37cf5 100755--- a/server/scripts/upgrade.sh+++ b/server/scripts/upgrade.sh@@ -81,6 +81,8 @@ cd "$LATEST_VERSION_DIRECTORY"# Launch yarn to check if we have all required dependenciesNOCLIENT=1 yarn install --production --pure-lockfile+OLD_VERSION_DIRECTORY=$(readlink "$PEERTUBE_PATH/peertube-latest")+# Switch to latest code versionrm -rf $PEERTUBE_PATH/peertube-latestln -s "$LATEST_VERSION_DIRECTORY" $PEERTUBE_PATH/peertube-latest@@ -93,7 +95,7 @@ echo ""if [ -x "$(command -v git)" ]; thencd $PEERTUBE_PATH- git merge-file -p config/production.yaml "$LATEST_VERSION_DIRECTORY/config/production.yaml.example" "peertube-latest/config/production.yaml.example" | tee "config/production.yaml.new" > /dev/null+ git merge-file -p config/production.yaml "$OLD_VERSION_DIRECTORY/config/production.yaml.example" "peertube-latest/config/production.yaml.example" | tee "config/production.yaml.new" > /dev/nullecho "$PEERTUBE_PATH/config/production.yaml.new generated"echo "You can review it and replace your existing production.yaml configuration"else