spawn_update_checker

Function spawn_update_checker 

Source
pub fn spawn_update_checker(server_url: String) -> Result<()>
Expand description

Spawns the background update checker task.

This task:

  1. Waits until the scheduled time (or runs immediately if past)
  2. Checks for updates from the server
  3. Updates the global status

If serve_public_web_site_only is enabled and the domain is the official collectivetoolbox.com domain, automatic updates are skipped (deployments are handled separately).

If serve_public_web_site_only is enabled and the domain is NOT the official domain, the auto_restart_enabled flag is set to skip interactive prompts.

§Arguments

  • server_url: URL of the update server

§Errors

Returns an error if the scheduled time cannot be determined.