#!/bin/bash FROSTFS_CLI="./bin/frostfs-cli" CONFIG_PATH="/home/achuprov/Documents/work/frostfs-dev-env/wallets/conf.yml" ID="YD2QxijQ9LHNywLX5tyaAX" MODES=("read-only" "read-write" "degraded-read-write" "degraded-read-only") for mode in "${MODES[@]}"; do echo "\$ $FROSTFS_CLI control shards set-mode --mode='$mode' --config='$CONFIG_PATH' --id='$ID'" $FROSTFS_CLI control shards set-mode --mode="$mode" --config="$CONFIG_PATH" --id="$ID" sleep 1 echo "\$ curl -sS 's02.frostfs.devenv:9090' | grep 'mode'" curl -sS "s02.frostfs.devenv:9090" | grep "mode" done