4NK_node/scripts/validate_and_orchestrate.sh
Debian 5c60af349d
Some checks failed
CI - 4NK_node / Security Tests (push) Failing after 27s
CI - 4NK_node / Documentation Tests (push) Failing after 3s
CI - 4NK_node / Security Audit (push) Successful in 3s
CI - 4NK_node / Release Guard (push) Has been skipped
CI - 4NK_node / Performance Tests (push) Successful in 27s
CI - 4NK_node / Notify (push) Failing after 1s
CI - 4NK_node / Publish Release (push) Has been skipped
CI - 4NK_node / Code Quality (push) Failing after 30s
CI - 4NK_node / Unit Tests (push) Failing after 29s
CI - 4NK_node / Integration Tests (push) Failing after 33s
CI - 4NK_node / Docker Build & Test (push) Failing after 10s
feat(config): centralize restart config; add conf/restart_config.conf; adapt restart script; add skeleton external_nodes.conf; update README
2025-09-04 19:44:15 +00:00

21 lines
503 B
Bash

#!/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