From 3f153b75b15ad349dc8e3503fb124d01e5aa7bb5 Mon Sep 17 00:00:00 2001 From: "Mauro Rosero P." Date: Sun, 6 Apr 2025 10:47:43 -0500 Subject: [PATCH] =?UTF-8?q?[FIXED]=20Manejo=20defensivo=20de=20la=20config?= =?UTF-8?q?uraci=C3=B3n=20freekeyval.dat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Corregido error cuando el archivo freekeyval.dat no existe - Añadido valor por defecto para el servicio keyvalue - Implementado manejo defensivo para evitar errores de ejecución - Documentado el bloque de código con comentario explicativo 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- bin/lib/base.lib | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bin/lib/base.lib b/bin/lib/base.lib index 0146de6..b0e1086 100644 --- a/bin/lib/base.lib +++ b/bin/lib/base.lib @@ -34,7 +34,12 @@ DEVELOPER_DIR=${HOME}/.developer DATENOW="$(date +"%Y-%m-%d %H:%M:%S")" DATEBAK="$(date +"%Y%m%d%H%M%S")" -FREEKV_URL=$(cat < "${BIN_PATH:=${BIN_HOME}}/${CONFPATH}/freekeyval.dat") +# Configuración del servicio de almacenamiento clave-valor +if [ -f "${BIN_PATH:=${BIN_HOME}}/${CONFPATH}/freekeyval.dat" ]; then + FREEKV_URL=$(cat < "${BIN_PATH}/${CONFPATH}/freekeyval.dat") +else + FREEKV_URL="https://keyvalue.immanuel.co" +fi FREEKV_SOPS_FILE=freekv-sops.devs.yaml DOCKER_LOCAL=dockerfile.local