From 0216c3485d81e85c9b6a7760e9a2cf8879420da6 Mon Sep 17 00:00:00 2001 From: Julien Rabier Date: Thu, 31 Aug 2023 11:06:23 +0200 Subject: [PATCH] Fix path to Peertube installation in upgrade.sh --- server/scripts/upgrade.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/scripts/upgrade.sh b/server/scripts/upgrade.sh index 64c7e1581..39a6c4d7e 100755 --- a/server/scripts/upgrade.sh +++ b/server/scripts/upgrade.sh @@ -91,10 +91,10 @@ echo "==========================================================" echo "" if [ -x "$(command -v git)" ]; then - cd /var/www/peertube + cd $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 - echo "/var/www/peertube/config/production.yaml.new generated" + echo "$PEERTUBE_PATH/config/production.yaml.new generated" echo "You can review it and replace your existing production.yaml configuration" else echo "git command not found: unable to generate config/production.yaml.new configuration file based on your existing production.yaml configuration"