#!/usr/bin/env bash set -euo pipefail BASE_DIR="/home/debian/code/4NK_dev/4NK_node" TOR_CONF="$BASE_DIR/conf/tor.conf" LINE2="" if [[ -f "$TOR_CONF" ]]; then LINE2=$(awk 'NR==2{print $0}' "$TOR_CONF" 2>/dev/null) fi if [[ "$LINE2" == "TorEnabled true" ]]; then echo "No change detected in tor.conf line 2 (TorEnabled true)." exit 0 else echo "Change detected in tor.conf line 2: '$LINE2'" echo "Running orchestration to apply changes..." bash "$BASE_DIR/scripts/orchestrate_start.sh" fi