From 844cb0d25661390da3cd18524803a4621315b8d6 Mon Sep 17 00:00:00 2001 From: Will Date: Thu, 29 Jun 2023 16:26:17 +0100 Subject: [PATCH] Fixed chown command --- docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 1c6afef..98b570c 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -75,7 +75,7 @@ then echo "---> Starting the MUNGE Authentication service (munged) ..." cd /home for DIR in */; - do USER=$( echo $DIR | sed "s/.$//" ) && (chown -R $USER $USER:$USER || echo "Failed to take ownership of $USER") && (chmod 600 /home/$USER/.ssh/authorized_keys || echo "Couldn't set permissions for .ssh keys for $USER"); + do USER=$( echo $DIR | sed "s/.$//" ) && (chown -R $USER:$USER $USER || echo "Failed to take ownership of $USER") && (chmod 600 /home/$USER/.ssh/authorized_keys || echo "Couldn't set permissions for .ssh keys for $USER"); done gosu munge /usr/sbin/munged /usr/sbin/sshd -D