make the volume scripts ignore ephemeral volumes

This commit is contained in:
goldsquid
2026-06-06 09:57:48 +07:00
parent d369f62c44
commit 91ef991773
10 changed files with 61 additions and 14 deletions

View File

@@ -3,6 +3,7 @@
# Fixed version that handles missing netstat
BASEPATH="$(dirname "$0")"
source "$BASEPATH/volume-utils.sh"
if [[ -n $2 ]]; then
DEST_HOST="$2.stakesquid.eu"
@@ -496,7 +497,7 @@ main() {
sudo sysctl -w net.ipv4.tcp_no_metrics_save=1
echo "Reading volume configuration from $1.yml..."
keys=$(cat /root/rpc/$1.yml | yaml2json - | jq '.volumes' | jq -r 'keys[]')
keys=$(get_persistent_volume_keys "/root/rpc/$1.yml")
if [[ -z "$keys" ]]; then
echo "Error: No volumes found in configuration"