Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion apps/llm-proxy/_modules/cli-proxy-api/bootstrap.sh.tftpl
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env bash
#!/bin/sh
# Lightsail prepends its own /bin/sh initialization to user data, so invoke
# Bash explicitly instead of relying on this template's shebang.
exec /usr/bin/env bash <<'CLIPROXY_BOOTSTRAP'
set -euo pipefail

exec > >(tee -a /var/log/cliproxy-bootstrap.log | logger -t cliproxy-bootstrap -s 2>/dev/console) 2>&1
Expand Down Expand Up @@ -168,3 +171,4 @@ systemctl enable --now cliproxyapi.service
caddy validate --config /etc/caddy/Caddyfile
systemctl enable caddy.service
systemctl restart caddy.service
CLIPROXY_BOOTSTRAP