From 5f376abd3877b1fc2a518f52fca4d2f667cab031 Mon Sep 17 00:00:00 2001 From: chiDT Date: Mon, 8 Sep 2025 21:03:22 +0900 Subject: [PATCH] Always install code-server on container start MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove conditional check for code-server existence - Always run installation to ensure latest version - Installation script handles existing installations gracefully 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- entrypoint.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 34a3b8e..29db3a9 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -58,10 +58,9 @@ set -e su - $XWINDOW_USER -c "rm -rf ~/.config/chromium/" # install code-server for user if not exists -if ! su - $XWINDOW_USER -c "which code-server" >/dev/null 2>&1; then - echo "Installing code-server for user $XWINDOW_USER..." - su - $XWINDOW_USER -c "curl -fsSL https://code-server.dev/install.sh | sh -s -- --method standalone" -fi +echo "Installing code-server for user $XWINDOW_USER..." +su - $XWINDOW_USER -c "curl -fsSL https://code-server.dev/install.sh | sh -s -- --method standalone" + # start code-server in background su - $XWINDOW_USER -c "code-server --bind-addr 0.0.0.0:30145 --auth password /mnt" &