Fixes Hermes CLI not found in PATH by installing hermes-agent inside paperclip_app container. Symlinks hermes executable to PATH, mounts persistent volumes for venv and hermes-data, configures shared API keys, and integrates setup script into deployment.
15 lines
527 B
Bash
15 lines
527 B
Bash
#!/usr/bin/env bash
|
|
###############################################################################
|
|
# hermes service.init — aufgerufen durch deploy_script.sh (run_service_inits)
|
|
# Delegiert die vollständige Einrichtung an setup_hermes.sh
|
|
###############################################################################
|
|
set -euo pipefail
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
SETUP_SCRIPT="${SCRIPT_DIR}/setup_hermes.sh"
|
|
|
|
if [[ -f "${SETUP_SCRIPT}" ]]; then
|
|
chmod +x "${SETUP_SCRIPT}"
|
|
bash "${SETUP_SCRIPT}"
|
|
fi
|