We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2aa6696 commit f20ed50Copy full SHA for f20ed50
scripts/deploy-node.sh
@@ -15,16 +15,18 @@ SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
15
SSH_KEY="$HOME/.ssh/id_ed25519_clawnet"
16
SSH_OPTS="-i $SSH_KEY -o ConnectTimeout=15 -o BatchMode=yes"
17
18
-# Node name → IP map
19
-declare -A NODE_IPS=(
20
- [alex]="173.249.46.252"
21
- [bess]="167.86.93.216"
22
-)
+resolve_host() {
+ case "$1" in
+ alex) echo "173.249.46.252" ;;
+ bess) echo "167.86.93.216" ;;
+ *) echo "$1" ;;
23
+ esac
24
+}
25
26
deploy_one() {
27
local target="$1"
- # Resolve name to IP if needed
- local host="${NODE_IPS[$target]:-$target}"
28
+ local host
29
+ host=$(resolve_host "$target")
30
31
echo ""
32
echo "╔══════════════════════════════════════════════════════╗"
0 commit comments