git pull origin $(git rev-parse --abbrev-ref HEAD) || exit -1
yarn install
-yarn update
-cd client && yarn update && cd ../
+yarn upgrade
+cd client && yarn upgrade && cd ../
npm run build
echo "\n\nUpgrade finished! You can restart PeerTube that may run the migration scripts."