Skip to content

Commit

Permalink
Fix bug on modifying sshd username (#5624)
Browse files Browse the repository at this point in the history
Should fix #5623
  • Loading branch information
MoshiBin authored and techknowlogick committed Jan 2, 2019
1 parent 74b9a13 commit 7606061
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker/usr/bin/entrypoint
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ if [ "${USER}" != "git" ]; then
# rename user
sed -i -e "s/^git\:/${USER}\:/g" /etc/passwd
# switch sshd config to different user
sed -i -e "s/AllowUsers git/AllowUsers ${USER}/g" /etc/ssh/sshd_config
sed -i -e "s/AllowUsers git$/AllowUsers ${USER}/g" /etc/ssh/sshd_config
fi

## Change GID for USER?
Expand Down

0 comments on commit 7606061

Please sign in to comment.