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:
@@ -147,5 +147,13 @@ validate_config() {
|
|||||||
fi
|
fi
|
||||||
done
|
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
|
return $errors
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user