I tried to research this on google and the nextcloud forums not I can't find a clear answer. I've run across 3 different ways and don't know why the GUI version doesn't work.
1)
2)
3) Click on the update button in the GUI. I don't know why but this doesn't work. Nothing happens when I click on it and I'm not sure why.
What does everyone use to update Nextcloud? Is there another option I've not listed? What do you need to do to get #3 working?
1)
pkg install sudo php72-phar
sudo -u www php /usr/local/www/nextcloud/updater/updater.phar
2)
mv /usr/local/www/nextcloud /usr/local/www/nextcloud-bak
fetch "https://download.nextcloud.com/server/releases/latest.tar.bz2"
tar jxf latest.tar.bz2 -C /usr/local/www
cp /usr/local/www/nextcloud-bak/config/config.php /usr/local/www/nextcloud/config
chown -R www:www /usr/local/www/nextcloud
su -m www -c 'php /usr/local/www/nextcloud/occ upgrade'
rm -r latest.tar.bz2 /usr/local/www/nextcloud-bak
3) Click on the update button in the GUI. I don't know why but this doesn't work. Nothing happens when I click on it and I'm not sure why.
What does everyone use to update Nextcloud? Is there another option I've not listed? What do you need to do to get #3 working?