Spaces:
Running
Running
Fix memory provider: change legacy 'local' to 'builtin' across config and runtime sync
Browse files- config/hermes.yaml +1 -1
- services/28-hermes-agent.sh +5 -0
config/hermes.yaml
CHANGED
|
@@ -26,7 +26,7 @@ api_server:
|
|
| 26 |
memory:
|
| 27 |
memory_enabled: true
|
| 28 |
user_profile_enabled: true
|
| 29 |
-
provider:
|
| 30 |
enabled: true
|
| 31 |
agent:
|
| 32 |
gateway_timeout: 300
|
|
|
|
| 26 |
memory:
|
| 27 |
memory_enabled: true
|
| 28 |
user_profile_enabled: true
|
| 29 |
+
provider: builtin
|
| 30 |
enabled: true
|
| 31 |
agent:
|
| 32 |
gateway_timeout: 300
|
services/28-hermes-agent.sh
CHANGED
|
@@ -67,6 +67,11 @@ if [ -n "$BASE_URL" ] && [ -f /home/appuser/.hermes/config.yaml ]; then
|
|
| 67 |
sed -i "s|https://tgp.ind.pp.ua/file/bot|https://${BASE_URL}/file/bot|g" /home/appuser/.hermes/config.yaml
|
| 68 |
fi
|
| 69 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 70 |
if pgrep -f "hermes gateway run" >/dev/null 2>&1; then
|
| 71 |
echo "hermes gateway already running"
|
| 72 |
exit 0
|
|
|
|
| 67 |
sed -i "s|https://tgp.ind.pp.ua/file/bot|https://${BASE_URL}/file/bot|g" /home/appuser/.hermes/config.yaml
|
| 68 |
fi
|
| 69 |
|
| 70 |
+
# Fix legacy memory.provider: local -> builtin
|
| 71 |
+
if [ -f /home/appuser/.hermes/config.yaml ]; then
|
| 72 |
+
sed -i "s|provider: local|provider: builtin|g" /home/appuser/.hermes/config.yaml 2>/dev/null || true
|
| 73 |
+
fi
|
| 74 |
+
|
| 75 |
if pgrep -f "hermes gateway run" >/dev/null 2>&1; then
|
| 76 |
echo "hermes gateway already running"
|
| 77 |
exit 0
|