Upgrade Nextcloud in FreeNAS jail

Signed up to say the following :slight_smile:

If running nextcloud inside FreeNAS jail, launch the jail shell from FreeNAS and run:

$ cd /usr/local/www/nextcloud
$ su -m www -c /bin/sh
$ php ./occ maintenance:mode --off

If the upgrade was stuck then follow through with:

$ php ./occ update
2 Likes

Thanks for letting us know. I moved to a new topic since your environment is different to the original post. Instead of changing the user, you can also run a single command as a different user:

su -m www -c 'php ./occ maintenance:mode --off'
1 Like