|
@@ -1,7 +1,10 @@
|
|
|
#!/usr/bin/env bash
|
|
#!/usr/bin/env bash
|
|
|
# flare-swap.sh — move ONE node onto a staged flare binary, safely.
|
|
# flare-swap.sh — move ONE node onto a staged flare binary, safely.
|
|
|
#
|
|
#
|
|
|
-# run on the node itself, or: ssh host 'bash -s' -- /usr/local/share/hyperflare/v0.1.0/flare < flare-swap.sh
|
|
|
|
|
|
|
+# run on the node itself, or: ssh host 'bash -s' -- /usr/local/share/hyperflare/v0.2.1/flare < flare-swap.sh
|
|
|
|
|
+#
|
|
|
|
|
+# The default staged path tracks the current fleet build (main@6b68b9b4). Keep it in
|
|
|
|
|
+# step when you stage a new one: a stale default here silently DOWNGRADES a node.
|
|
|
#
|
|
#
|
|
|
# Rules it encodes (learned the hard way, see specs/tech-architecture/flare-storage-nas.md):
|
|
# Rules it encodes (learned the hard way, see specs/tech-architecture/flare-storage-nas.md):
|
|
|
# * the unit ExecStarts ~/.local/lib/flare-agent/flare, which dpkg does NOT own:
|
|
# * the unit ExecStarts ~/.local/lib/flare-agent/flare, which dpkg does NOT own:
|
|
@@ -11,7 +14,7 @@
|
|
|
# * verification is sha + /proc/<pid>/exe, never `flare --version` (prints 0.1.0 always).
|
|
# * verification is sha + /proc/<pid>/exe, never `flare --version` (prints 0.1.0 always).
|
|
|
set -uo pipefail
|
|
set -uo pipefail
|
|
|
|
|
|
|
|
-STAGED=${1:-/usr/local/share/hyperflare/v0.1.0/flare}
|
|
|
|
|
|
|
+STAGED=${1:-/usr/local/share/hyperflare/v0.2.1/flare}
|
|
|
FORCE=${FORCE:-0}
|
|
FORCE=${FORCE:-0}
|
|
|
TS=$(date +%Y%m%d)
|
|
TS=$(date +%Y%m%d)
|
|
|
SUDO=""
|
|
SUDO=""
|