Skip to content

Commit

Permalink
[docker] let the ssh daemon speak for itself and drop the syslog daem…
Browse files Browse the repository at this point in the history
…on (go-gitea#6529)

The sshd flag `-e` instructs sshd to output any logs to stderr instead
 of the syslog. Redirect this output to stdout then.

Signed-off-by: Jakob Ackermann <[email protected]>
  • Loading branch information
das7pad authored and techknowlogick committed Apr 17, 2019
1 parent 6821a32 commit 62b3596
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion docker/etc/s6/openssh/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
[[ -f ./setup ]] && source ./setup

pushd /root > /dev/null
exec su-exec root /usr/sbin/sshd -D
exec su-exec root /usr/sbin/sshd -D -e 2>&1
popd
2 changes: 0 additions & 2 deletions docker/etc/s6/syslogd/finish

This file was deleted.

6 changes: 0 additions & 6 deletions docker/etc/s6/syslogd/run

This file was deleted.

1 change: 0 additions & 1 deletion docker/etc/s6/syslogd/setup

This file was deleted.

0 comments on commit 62b3596

Please sign in to comment.