-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatic upgrade after package upgrade #12125
Comments
Additionally it reminds me of #10602. In pre-install the package should first enable maintenance mode to prevent people accessing the OC instance while the files are overwritten. So the idea is:
This would also assume that the admin already have a backup mechanism in place. |
I've added a draft to the specfile at https://build.opensuse.org/package/show/home:jnweiger:branches:isv:ownCloud:community:7.0/owncloud Should that do the job? It also should obsolete messing around with apache, I suppose! When we say 'occ upgrade', does that automatically end maintenance mode? |
@jnweiger last time when I upgraded to 7.0.3 on openSUSE, I did the following:
After that it seemed that the maintenance mode was gone, so the answer to your question is: yes |
@PVince81 thanks! |
@MorrisJobke In my branch I am running occ as root during install. Should it be run as webserver user instead? Detemining the name of the webserver user is not an issue. This is already part of the installation procedure. |
@jnweiger Yes. Because it sometimes also modifies files (I remind some config.php fixes) that the webserver should be able to write afterwards. cc @LukasReschke Didn't you add this? |
Yup. Run occ ever only as webserver user. Everything else might lead to problems and should also not work (at least for some commands it doesn't) |
@LukasReschke thanks! (Sounds like we want to have that as an assertion in occ ... ) |
https://build.opensuse.org/package/show/home:jnweiger:branches:isv:ownCloud:community:7.0/owncloud got lost meanwhile. Restored. |
Implementation is in debian.owncloud-server.preinst debian.owncloud-server.postinst |
has this been snafu-related? |
It had, obviously. The current method is way better than it used to be for users (if it finally works*). Thank you for changing that! |
Since OC 7 there's a "Update now" button that needs to be clicked manually.
Ideally admins should rather run
./occ upgrade
to make sure to not run into PHP timeouts.The idea is to provide a mechanism to run an unattended upgrade:
./occ upgrade
on the instanceCC @jnweiger
The text was updated successfully, but these errors were encountered: