To try and hopefully prevent issues caused by this (more often) I propose to add the version suffix to the owncloud folder in the release tar/zip. Personally, I have set up apache to serve ownCloud from a symbolic link. Whenever there is an update I unpack the release tarball, mv owncloud owncloud-x.y.z, copy the old config, put old oc in maintenance via occ, update the symbolic link, update the now oc, switch to single user mode, test, allow all users to log back in. So far I have not had the need to restore a database backup (coming from oc4.0), but that may have been luck. In that case I can also easily switch back by changing the symbolic link again.
Anyway, what is your opinion? Should we add a version suffix to the ownCloud folder in the release tarball?
Nah, keep the folder name 'owncloud'.
Yes, please! It will save me an extra mv on every update. Maybe, it will even prevent mixed codebases and save people countless hours of hair pulling, trying to reproduce a weird issue.
A suffix would be nice. However if we do add it, we need to make sure to properly communicate this and also adjust the updater code. There are admins out there who might have automated tarball updates and whose scripts might need adjusting.
If we do do it, I suggest only for new releases and leave the past ones as before.
Could help some users on their own server. However, not everybody uses a subfolder for owncloud, so you would need to set a DocumentRoot which is symlinked. And it needs to work on nginx and apache, and SELinux, ...
And our friends on shared hosting don't have this option and they often run in such problems.
Deploying OC as a subdomain (I do that) will require you to configure the document root on your own anyway. Adding a best practice to the owncloud documentation should be sufficient. At least it forces you to think about what you are doing instead of giving you a har time trying to find out what went wrong. If you want to change your document root instead of a link that is a perfectly legitimate way to handle an OC upgrade. If you use SELinux you already need to touch the config because OC might want to talk SMB or open other connections uncommon for a web application.
Ì don't think any of the above outweighs a decreased chance for code mixes, but ..
shared hosting is an interesting point. Maybe we should add a RELEASE-NOTES-9.2.0.md file with the release notes. When a user just copies over the new version he should have more than one RELEASE-NOTES-x.y.z.md which we can then detect and tell him to follow the official upgrade procedure?
Maybe it's easy to create another tarball with these changes and keep both. Although ownCloud can promote the new "tarball with suffix" package, the old tarball could be accessible in other place.