feat(users): interactive helper to create admin user if missing; call during config

This commit is contained in:
Mărcziem ™
2025-10-03 12:18:55 +02:00
parent cfc234559e
commit 89349adc26
2 changed files with 42 additions and 0 deletions

View File

@@ -313,6 +313,8 @@ create_interactive_config() {
# User configuration
local username=$(ask_input "Admin username" "$NEW_USER" "validate_username")
save_config "ADMIN_USER" "$username"
# Ensure the configured admin user exists (offer interactive creation)
ensure_user_exists_interactive "$username" || log_warning "Admin user '$username' not created; some features may require it."
# Network configuration
if ask_yes_no "Configure static IP?" "n"; then