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

install yq

parent dbc177ce
Loading
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -132,13 +132,13 @@ 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
echo "== Installing yq locally (no sudo) =="
YQ_BIN="$PWD/.bin"
mkdir -p "$YQ_BIN"
curl -Ls -o "$YQ_BIN/yq" "https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64"
chmod +x "$YQ_BIN/yq"
export PATH="$YQ_BIN:$PATH"
yq --version
fi

SERV_DIR="$CAPIF_DIR/$CAPIF_SERVICES_DIR"
if [ ! -d "$SERV_DIR" ]; then