Skip to content

Commit

Permalink
Now starts sshd directly in foreground
Browse files Browse the repository at this point in the history
  • Loading branch information
wtripp180901 committed Jun 29, 2023
1 parent 63f5fb1 commit 00ff701
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ fi
if [ "$1" = "login" ]
then
echo "---> Starting the MUNGE Authentication service (munged) ..."
exec service ssh start
for USER in /home/*;
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");
done
gosu munge /usr/sbin/munged -F
gosu munge /usr/sbin/munged
/usr/sbin/sshd -D
fi

exec "$@"

0 comments on commit 00ff701

Please sign in to comment.