Commit dbc177ce authored by Guillermo Sanz López's avatar Guillermo Sanz López
Browse files

install yq

parent 8598a704
Loading
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -132,6 +132,14 @@ else
fi

# 2) Entrar en /services y lanzar run.sh
if ! command -v yq >/dev/null 2>&1; then
  echo "== Installing yq =="
  sudo curl -Ls -o /usr/local/bin/yq \
    "https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64"
  sudo chmod +x /usr/local/bin/yq
  yq --version
fi

SERV_DIR="$CAPIF_DIR/$CAPIF_SERVICES_DIR"
if [ ! -d "$SERV_DIR" ]; then
  echo "❌ Services dir not found: $SERV_DIR" >&2