Skip to content

Commit 58707af

Browse files
author
bjohns
committed
fix: set HOME=/home/tinycode and SHELL=/bin/sh — OpenShift overrides break tmux
1 parent 892eb3b commit 58707af

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

entrypoint.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
#!/bin/sh
22
set -e
33

4+
# ── Fix OpenShift environment overrides ──────────────────────────────────────
5+
# OpenShift sets HOME=/ (read-only) and SHELL=/sbin/nologin (exits immediately).
6+
# Both break tmux: it can't write to HOME and spawned shells die instantly.
7+
export HOME="/home/tinycode"
8+
export SHELL="/bin/sh"
9+
410
# Write container defaults to config.json unconditionally on every start.
511
# tinycode loads config in order: config.json -> tinycode.json -> tinycode.jsonc
612
# (src/config/config.ts:484-486). Writing to the lowest-priority config.json

0 commit comments

Comments
 (0)