How to upgrade PeerTube to version v7.1.1

  1. Go to /var/ds/peertube.example.org, edit settings.sh, and set:

    PT_VERSION="v7.1.1"
    
  2. Rebuild the container with: ds make

  3. Run these commands inside the container:

    ds shell
    
    cd /var/www/peertube/peertube-latest/dist/scripts/
    sudo -H -u peertube ./upgrade.sh
    sudo -u peertube yarn cache clean
    systemctl restart peertube
    

Note: It seems like these steps can be easily automated with a command like ds upgrade, but no, sometimes extra steps may need to be executed, as explained in this page.
For the case of upgrade to v7.1.1 from the previous ones, we luckily didn’t have to modify the peertube configuration, nginx configuration, etc.