Always install code-server on container start

- 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 <noreply@anthropic.com>
This commit is contained in:
2025-09-08 21:03:22 +09:00
parent 133e527672
commit 5f376abd38

View File

@@ -58,10 +58,9 @@ set -e
su - $XWINDOW_USER -c "rm -rf ~/.config/chromium/" su - $XWINDOW_USER -c "rm -rf ~/.config/chromium/"
# install code-server for user if not exists # 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..."
echo "Installing code-server for user $XWINDOW_USER..." su - $XWINDOW_USER -c "curl -fsSL https://code-server.dev/install.sh | sh -s -- --method standalone"
su - $XWINDOW_USER -c "curl -fsSL https://code-server.dev/install.sh | sh -s -- --method standalone"
fi
# start code-server in background # start code-server in background
su - $XWINDOW_USER -c "code-server --bind-addr 0.0.0.0:30145 --auth password /mnt" & su - $XWINDOW_USER -c "code-server --bind-addr 0.0.0.0:30145 --auth password /mnt" &