pg_dump -U peertube -W -h localhost -F c peertube_prod -f "$SQL_BACKUP_PATH"
# Get and Display the Latest Version
VERSION=$(curl -s https://api.github.com/repos/chocobozzz/peertube/releases/latest | grep tag_name | cut -d '"' -f 4)
echo "Latest Peertube version is $VERSION"
pg_dump -U peertube -W -h localhost -F c peertube_prod -f "$SQL_BACKUP_PATH"
# Get and Display the Latest Version
VERSION=$(curl -s https://api.github.com/repos/chocobozzz/peertube/releases/latest | grep tag_name | cut -d '"' -f 4)
echo "Latest Peertube version is $VERSION"
-rm -rf ~/peertube-latest
-ln -s ~/versions/peertube-${VERSION} ~/peertube-latest
-cd ~/peertube-latest
+rm -rf /var/www/peertube/peertube-latest
+ln -s /var/www/peertube/versions/peertube-${VERSION} /var/www/peertube/peertube-latest
+cd /var/www/peertube/peertube-latest