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" &