From d1c70186b54944b7192364bd04b02cde14184328 Mon Sep 17 00:00:00 2001 From: Garrett Mills Date: Tue, 6 Oct 2026 20:39:42 +0000 Subject: [PATCH] Fix startup bash --- jump-box/startup.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jump-box/startup.bash b/jump-box/startup.bash index f354cb9..7f04fa9 100644 --- a/jump-box/startup.bash +++ b/jump-box/startup.bash @@ -10,8 +10,8 @@ mkdir -p "$(dirname "/etc/ssh/sshd_config.d/10-hostkeys.conf")" printf 'HostKey %s\n' "${keys[@]}" > "/etc/ssh/sshd_config.d/10-hostkeys.conf" # Setup the DinD socket: -if [ -z DOCKER_RUN_DIR ]; then - ln -s /run/dind/docker.sock /var/run/docker.sock || echo "Failed to symlink Docker socket!" +if [ -n DOCKER_RUN_DIR ]; then + ln -s "$DOCKER_RUN_DIR/docker.sock" /var/run/docker.sock || echo "Failed to symlink Docker socket!" fi # Setup the target user and their group