aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/upgrade.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/upgrade.sh b/scripts/upgrade.sh
index 59dc5ab26..9c17aecb8 100755
--- a/scripts/upgrade.sh
+++ b/scripts/upgrade.sh
@@ -68,11 +68,13 @@ cd $PEERTUBE_PATH/versions
68unzip -o "peertube-${VERSION}.zip" 68unzip -o "peertube-${VERSION}.zip"
69rm -f "peertube-${VERSION}.zip" 69rm -f "peertube-${VERSION}.zip"
70 70
71# Upgrade Scripts 71# Launch yarn to check if we have all required dependencies
72cd "$PEERTUBE_PATH/versions/peertube-${VERSION}"
73NOCLIENT=1 yarn install --production --pure-lockfile
74
75# Switch to latest code version
72rm -rf $PEERTUBE_PATH/peertube-latest 76rm -rf $PEERTUBE_PATH/peertube-latest
73ln -s "$PEERTUBE_PATH/versions/peertube-${VERSION}" $PEERTUBE_PATH/peertube-latest 77ln -s "$PEERTUBE_PATH/versions/peertube-${VERSION}" $PEERTUBE_PATH/peertube-latest
74cd $PEERTUBE_PATH/peertube-latest
75NOCLIENT=1 yarn install --production --pure-lockfile
76cp $PEERTUBE_PATH/peertube-latest/config/default.yaml $PEERTUBE_PATH/config/default.yaml 78cp $PEERTUBE_PATH/peertube-latest/config/default.yaml $PEERTUBE_PATH/config/default.yaml
77 79
78echo "Differences in configuration files..." 80echo "Differences in configuration files..."