Skip to main content

run_wizard

Function run_wizard 

Source
pub async fn run_wizard(existing_config: Option<&Config>) -> Result<Config>
Expand description

Run the interactive setup wizard

Guides the user through configuration, collecting values and returning a complete Config. Does NOT save - the caller is responsible for saving.

Creates PAM-based users in the container if it’s running. Migrates old auth_username/auth_password to new users array.

§Arguments

  • existing_config - Optional existing config to show current values

§Returns

  • Ok(Config) - Completed configuration ready to save
  • Err - User cancelled or prechecks failed