Add Docker dependency validation to validate_config

- Check if Docker-dependent services are enabled without Docker
- Force interactive config recreation if inconsistencies found
This commit is contained in:
Mărcziem ™
2025-10-03 09:09:44 +02:00
parent fea22c3e0d
commit 0358f45d60

View File

@@ -147,5 +147,13 @@ validate_config() {
fi
done
# Validate Docker dependencies
if [[ "${INSTALL_DOCKER:-false}" != "true" ]]; then
if [[ "${INSTALL_VAULTWARDEN:-false}" == "true" ]] || [[ "${INSTALL_JELLYFIN:-false}" == "true" ]] || [[ "${INSTALL_PORTAINER:-false}" == "true" ]]; then
log_warning "Docker-abhängige Services sind aktiviert, aber Docker ist deaktiviert. Erzwinge neue Konfiguration."
return 1 # Force create_interactive_config
fi
fi
return $errors
}