aboutsummaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorThomas Boerger <thomas@webhippie.de>2016-12-15 10:16:55 +0100
committerLunny Xiao <xiaolunwen@gmail.com>2016-12-15 17:16:55 +0800
commitc6b6a61bf1feee6f735b74694a96e8a21c6b673d (patch)
tree69b9fab521a8b236afc6c0f8bafab8734c5c5e51 /docker
parent1831ee2d1d22596c3c697c11073e84be61ce5c5d (diff)
downloadgitea-c6b6a61bf1feee6f735b74694a96e8a21c6b673d.tar.gz
gitea-c6b6a61bf1feee6f735b74694a96e8a21c6b673d.zip
Fixing multiple docker issues (#386)
* Added stupid docker task to makefile * Dropped unknown option PrintLastLog from docker ssh config * OpenSSH should log to docker stdout * Set random pw for docker git user, otherwise it is locked * Stop using templates and public within docker
Diffstat (limited to 'docker')
-rwxr-xr-xdocker/etc/s6/openssh/run2
-rw-r--r--docker/etc/ssh/sshd_config1
2 files changed, 1 insertions, 2 deletions
diff --git a/docker/etc/s6/openssh/run b/docker/etc/s6/openssh/run
index 46f422cce6..502e7f6dde 100755
--- a/docker/etc/s6/openssh/run
+++ b/docker/etc/s6/openssh/run
@@ -2,5 +2,5 @@
[[ -f ./setup ]] && source ./setup
pushd /root > /dev/null
- exec su-exec root /usr/sbin/sshd -E /var/log/sshd.log -D
+ exec su-exec root /usr/sbin/sshd -D
popd
diff --git a/docker/etc/ssh/sshd_config b/docker/etc/ssh/sshd_config
index 991b5196a0..0248a2e8dc 100644
--- a/docker/etc/ssh/sshd_config
+++ b/docker/etc/ssh/sshd_config
@@ -18,7 +18,6 @@ UseDNS no
AllowAgentForwarding no
AllowTcpForwarding no
PrintMotd no
-PrintLastLog no
PermitUserEnvironment yes
PermitRootLogin no