1
0

Fix startup bash
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/deployment/woodpecker Pipeline was successful

This commit is contained in:
2026-10-06 20:39:42 +00:00
parent cea818847a
commit d1c70186b5

View File

@@ -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