Skip to content

Commit

Permalink
Fixed loop
Browse files Browse the repository at this point in the history
  • Loading branch information
wtripp180901 committed Jun 29, 2023
1 parent cee8980 commit d6723cb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ then
echo "---> Starting the MUNGE Authentication service (munged) ..."
cd /home
for DIR in */;
source USER=$( echo $DIR | sed "s/.$//" )
do (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
Expand Down

0 comments on commit d6723cb

Please sign in to comment.