post-upgrade runbook: correct cli invocation
1 changed file +2 −2
modified
deploy/bin/post-upgrade.sh
+2 −2
@@ -16,7 +16,7 @@ has() { local s; for s in "${steps[@]}"; do [[ $s == "$1" ]] && return 0; done; | ||
| 16 | 16 | # `cli` service runs the worker image; scripts/ is not baked into the image → bind-mount it |
| 17 | 17 | CLI="$(compose_prefix data) run --rm -T" |
| 18 | 18 | CLI_SCRIPTS="$(compose_prefix data) run --rm -T -v $REMOTE_DIR/scripts:/app/scripts cli node /app/node_modules/tsx/dist/cli.mjs /app/scripts" |
| 19 | −dci() { remote data "$CLI cli $*"; } | |
| 19 | +dci() { remote data "$CLI cli cli $*"; } | |
| 20 | 20 | script() { remote data "$CLI_SCRIPTS/$*"; } |
| 21 | 21 | psqlq() { remote data "docker exec -i dci-postgres-1 psql -U dci -d dci -Atc \"$1\""; } |
| 22 | 22 | |
@@ -33,7 +33,7 @@ if has reprocess; then | ||
| 33 | 33 | log "reprocess: every connector, stale documents only (offline)" |
| 34 | 34 | ids=$(psqlq "select string_agg(id, ' ' order by id) from connectors where enabled") |
| 35 | 35 | for id in $ids; do |
| 36 | − remote data "$CLI cli reprocess $id --stale 2>&1 | grep -E 'reprocess → |selected' | tail -2" || true | |
| 36 | + remote data "$CLI cli cli reprocess $id --stale 2>&1 | grep -E 'reprocess → |selected' | tail -2" || true | |
| 37 | 37 | done |
| 38 | 38 | fi |
| 39 | 39 | if has unbacked; then |
| 40 | 40 | |