summaryrefslogtreecommitdiffstats
path: root/docker/usr
diff options
context:
space:
mode:
authorMoshi Binyamini <MoshiBin@users.noreply.github.com>2019-01-03 00:42:33 +0200
committertechknowlogick <hello@techknowlogick.com>2019-01-02 17:42:33 -0500
commit76060613efa85b828ff06de3172d94d00e580726 (patch)
tree93b73a79459e3668c52c189548ef6b3103fef51e /docker/usr
parent74b9a13f8493f9b3a00fb0ad05f71f2baaf101dc (diff)
downloadgitea-76060613efa85b828ff06de3172d94d00e580726.tar.gz
gitea-76060613efa85b828ff06de3172d94d00e580726.zip
Fix bug on modifying sshd username (#5624)
Should fix #5623
Diffstat (limited to 'docker/usr')
-rwxr-xr-xdocker/usr/bin/entrypoint2
1 files changed, 1 insertions, 1 deletions
diff --git a/docker/usr/bin/entrypoint b/docker/usr/bin/entrypoint
index 50623bfa66..e2875b443a 100755
--- a/docker/usr/bin/entrypoint
+++ b/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?