We have a quite huge Wordpress multi-sites installation with lots of themes/plugins. So we often have new available updates (core/themes/plugins).
We don't use automatic updates :
AUTOMATIC_UPDATER_DISABLED
istrue
DISALLOW_FILES_MODS
isfalse
Indeed we use a security system on server side (Security-Enhanced Linux) that prevent file modification. We have to do the updates manually, by first disabling SELinux, then starting the updates, then enabling SELinux back...
Is there any way we can enable auto updates and then :
- detect when an update process is going to start, then disabling SELinux
- detect when the update process is done, then enabling SELinux back
- log to file or database what has been updated
I have identified the file wp-includes/update.php but I want to avoid modifying core files.