Skip to content

Commit 3d4cdf3

Browse files
committed
fix: ensure sudo shim is available in pi root pods
1 parent 6dfa61a commit 3d4cdf3

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

config/jupyterhub/08-pi-home-and-spawn-fixes.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -597,10 +597,6 @@
597597
code_server_bootstrap_script = textwrap.dedent(
598598
"""
599599
set -u
600-
if [ "${JUPYTERHUB_SERVER_NAME:-}" = "pi" ]; then
601-
exit 0
602-
fi
603-
604600
# Local/dev convenience: provide a minimal sudo shim for root-run pods
605601
# when the base image does not ship sudo.
606602
if [ "$(id -u)" = "0" ] && ! command -v sudo >/dev/null 2>&1; then
@@ -620,6 +616,10 @@
620616
chmod 0755 /usr/local/bin/sudo || true
621617
fi
622618
619+
if [ "${JUPYTERHUB_SERVER_NAME:-}" = "pi" ]; then
620+
exit 0
621+
fi
622+
623623
CS_BIN="$HOME/.local/bin/code-server"
624624
if [ -x "$CS_BIN" ]; then
625625
exit 0

0 commit comments

Comments
 (0)