Fix bug on modifying sshd username (#5624)

Should fix #5623
tokarchuk/v1.17
Moshi Binyamini 6 years ago committed by techknowlogick
parent 74b9a13f84
commit 76060613ef
  1. 2
      docker/usr/bin/entrypoint

@ -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?

Loading…
Cancel
Save