From 0358f45d602ccea8f9a74dc57be7de17b3617aab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C4=83rcziem=20=E2=84=A2?= <118485377+spalencsar@users.noreply.github.com> Date: Fri, 3 Oct 2025 09:09:44 +0200 Subject: [PATCH] Add Docker dependency validation to validate_config - Check if Docker-dependent services are enabled without Docker - Force interactive config recreation if inconsistencies found --- config/defaults.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config/defaults.sh b/config/defaults.sh index 31b1b38..cd3e23c 100644 --- a/config/defaults.sh +++ b/config/defaults.sh @@ -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 }