Docs use generic ops/outside-runner wording; install path ~/src/taler-monitoring. VERSION 1.4.1 patch on top of the 1.4.0 scheme release.
19 lines
765 B
Bash
Executable file
19 lines
765 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# pull-firecuda-to-koopa.sh — copy HTML from firecuda work dir → koopa staging
|
|
# Run on laptop (hernani) where both SSH aliases work.
|
|
set -euo pipefail
|
|
FIRECUDA="${FIRECUDA_SSH:-}"
|
|
if [ -z "$FIRECUDA" ]; then
|
|
echo "Set FIRECUDA_SSH to your outside-runner SSH host alias" >&2
|
|
exit 2
|
|
fi
|
|
KOOPA="${DEPLOY_SSH:-koopa-external}"
|
|
REMOTE_HTML="${FIRECUDA_HTML:-var/taler-monitoring-sites-work/html/}"
|
|
STAGE="${DEPLOY_STAGING:-/home/hernani/monitoring-sites-staging}"
|
|
|
|
echo "firecuda:$REMOTE_HTML → $KOOPA:$STAGE"
|
|
ssh -o BatchMode=yes -o ConnectTimeout=20 "$KOOPA" "mkdir -p '$STAGE'"
|
|
rsync -az --delete \
|
|
"${FIRECUDA}:${REMOTE_HTML}" \
|
|
"${KOOPA}:${STAGE}/"
|
|
echo "OK staged. Root: rsync to /var/www/monitoring-sites (see ROOT-ON-KOOPA.md)"
|