Initial commit: spatiul de lucru al puntii Discord
Continut mutat din repo-ul romfast/workspace, unde fusese comis din greseala (commit-urile 0558bae si 47d9fb2 de acolo). Acolo e acum ignorat. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Q4uzvgm7AyJch5WH8QHRhY
This commit is contained in:
21
tools/roa2web.sh
Executable file
21
tools/roa2web.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env bash
|
||||
# Wrapper peste clientul roa2web deja autentificat pe moltbot (LXC 110, echo-core).
|
||||
# Nu duplica credentiale aici: ruleaza tools/roa2web_client.py de pe moltbot prin SSH,
|
||||
# folosind token-ul din keyring-ul lui echo-core.
|
||||
#
|
||||
# Uz:
|
||||
# tools/roa2web.sh companies
|
||||
# tools/roa2web.sh summary [--company <cod|nume>] [--luna N] [--an N]
|
||||
# tools/roa2web.sh get <path> [--company <cod|nume>] [--param k=v ...]
|
||||
#
|
||||
# Firma implicita (daca omiti --company): ROMFAST SRL (114), din config.json de pe moltbot.
|
||||
set -euo pipefail
|
||||
|
||||
HOST="moltbot@10.0.20.173"
|
||||
REMOTE_CMD="cd ~/echo-core && .venv/bin/python3 tools/roa2web_client.py"
|
||||
|
||||
for arg in "$@"; do
|
||||
REMOTE_CMD+=" $(printf '%q' "$arg")"
|
||||
done
|
||||
|
||||
exec ssh -o BatchMode=yes -o ConnectTimeout=10 "$HOST" "$REMOTE_CMD"
|
||||
Reference in New Issue
Block a user