Load ~/.config/taler-monitoring/env (taler-monitoring-env profiles) before suite defaults. Drop hardcoded operator homes and host aliases from scripts; apply/staging/www/secrets/wallet via env.
19 lines
758 B
Bash
Executable file
19 lines
758 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:?set DEPLOY_SSH in env}"
|
|
REMOTE_HTML="${FIRECUDA_HTML:-var/taler-monitoring-sites-work/html/}"
|
|
STAGE="${DEPLOY_STAGING:-${DEPLOY_STAGING:-$HOME/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 (see ROOT-ON-KOOPA.md)"
|