Also started using the .htaccess file shipped in the root of ownCloud.
Note that this was done with a direct include rather than enabling
overrides due to the performance penalty. Typically this would be
unsafe, but the dangers are negated by the fact that the .htaccess file
is read-only.
ownCloud doesn't handle migrating an install, which means in order to do
so one must directly access the database. The current snap doesn't
expose a MySQL client, so such a thing is currently difficult. This
commit exposes the MySQL client as an app, which will use the root MySQL
user.
Currently the Apache startup script just runs `occ upgrade` without
checking the result. However, its success depends upon a number of other
factors (e.g. mysql being ready), so it could potentially fail. This
commit updates the startup script to make an `occ upgrade` failure
fatal, thus causing Apache to restart and try again.
This is done by using SNAP_DATA/owncloud/tmp instead of /tmp as
the upload_tmp_dir and also updating the upload_max_filesize and
upload_max_filesize in php.ini.