From 19d0706794d99f4572d7ddf266bed8551b529df3 Mon Sep 17 00:00:00 2001 From: Zoey Date: Sun, 24 Mar 2024 18:41:00 +0100 Subject: [PATCH] Update setup-sshd.sh Signed-off-by: Zoey --- setup-sshd.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup-sshd.sh b/setup-sshd.sh index b7cdfd2..3bb3da1 100755 --- a/setup-sshd.sh +++ b/setup-sshd.sh @@ -14,7 +14,7 @@ chmod 700 /tmp/.ssh chmod 600 /tmp/.ssh/authorized_keys chown -R 1000:1000 /tmp -if [ -S ]; then +if [ -S /var/run/docker.sock ]; then DOCKER_GROUP=$(stat -c '%G' /var/run/docker.sock) DOCKER_GROUP_ID=$(stat -c '%g' /var/run/docker.sock) groupadd -g "$DOCKER_GROUP_ID" docker