FreeNAS uses the FreeBSD Jail functionality to provide support for plugins. That is great and all, but the FreeNAS repository is not always up to date and if you want to use the latest software, you have to upgrade it yourself.
Luckily, you don’t have to get your hands very dirty to do so, as upgrading ownCloud in itself is fairly easy. Depending on your current version, ownCloud should give you the option to update itself. If it doesn’t, ownCloud has an easy to follow guide here. The version below resembles the same upgrade, with just a few slight changes for FreeNAS.
1. Turn off the Jail. I find it easier than using the maintenance mode.
2. SSH to your machine and change into the ownCloud directory within your Jail:
path is path/to/jail/usr/pbi/owncloud-amd64/www
3. rename the old ownCloud folder (as a backup):
mv owncloud owncloud_bak
4. Get the latest version of ownCloud (you can find the link on owncloud.org. This is the link for the current version 8):
wget https://download.owncloud.org/community/owncloud-8.0.0.tar.bz2
5. Unpack
tar xjf owncloud-8.0.0.tar.bz2
6. Copy the config.php of your old ownCloud installation
cp ./owncloud_bak/config/config.php ./owncloud/config/
7. Ownership of the folder and its contents should be changed to the user www.
chown -R ./owncloud
8. Turn on Jail and go to your ownCloud with your webbrowser. The page should offer an automatic upgrade.
Your done. The data is by default stored unter /media/ within your Jail and not in the owncloud directory.
After the upgrade you can delete the .tar.bz2 file you downloaded as well as your owncloud_bak folder. It is a good measure to keep an old version around as a backup, though.