Remove thr web updater this is now either queued from the web or ran from the shell to update

This commit is contained in:
johnnyq
2026-08-26 22:53:29 -04:00
parent 93fc6cd2ef
commit 51c925522c
3 changed files with 23 additions and 329 deletions

View File

@@ -336,10 +336,11 @@ function getRepoBranch(): string
}
/*
* Whether this PHP can run external commands at all. ITFlow updates itself with git, so the
* update path needs exec() and shell_exec(); hosts that disable them - shared hosting, a
* hardened php.ini, an FPM pool locked down while the CLI is not - can still update through
* cron, which runs under a different php.ini and its own settings.
* Whether this PHP can run external commands at all. Applying an update is cron's job now, so
* the only thing the web tier still wants a shell for is READING git - checkForUpdates() and
* the pending-commit list on Maintenance > Update. Hosts that disable exec()/shell_exec() -
* shared hosting, a hardened php.ini, an FPM pool locked down while the CLI is not - lose the
* "an update is waiting" readout, not the ability to update.
*
* function_exists() already reports a disabled function as missing. disable_functions is
* read as well because some hardening extensions leave the function defined and refuse the