-
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathentrypoint.sh
More file actions
36 lines (34 loc) · 762 Bytes
/
Copy pathentrypoint.sh
File metadata and controls
36 lines (34 loc) · 762 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
set -e
# Install OpenCode if not present
if [ ! -f /root/.opencode/bin/opencode ]; then
echo "[DOCKER] Installing OpenCode..."
curl -fsSL https://opencode.ai/install | bash
echo "[DOCKER] OpenCode installed"
fi
export PATH="/root/.opencode/bin:$PATH"
case "$CONNECTOR" in
discord)
exec bun connectors/discord.ts
;;
slack)
exec bun connectors/slack.ts
;;
matrix)
exec bun connectors/matrix.ts
;;
whatsapp)
exec bun connectors/whatsapp.ts
;;
mattermost)
exec bun connectors/mattermost.ts
;;
telegram)
exec bun connectors/telegram.ts
;;
*)
echo "Unknown connector: $CONNECTOR"
echo "Valid options: discord, slack, matrix, whatsapp, mattermost, telegram"
exit 1
;;
esac