Update standalone.yml
[discourse_docker.git] / templates / sshd.template.yml
CommitLineData
9fb5f2d3
SS
1params:
2 # SSH key is required for remote access into the container
4ae88123
SS
3 # you may also use ssh-import-id
4 ssh_key: ""
5 # so ssh-import-id works
6
7env:
8 HOME: /root
9fb5f2d3
SS
9
10run:
11
025a598b
S
12 - replace:
13 filename: /etc/pam.d/sshd
14 from: "session required pam_loginuid.so"
15 to: ""
16
17
9fb5f2d3
SS
18 - file:
19 path: /etc/service/sshd/run
20 chmod: "+x"
21 contents: |
adff6a90 22 #!/bin/bash
9fb5f2d3
SS
23 exec 2>&1
24 exec /usr/sbin/sshd -D -e
25
26 - exec:
8a62ef0e 27 hook: sshd
9fb5f2d3
SS
28 cmd:
29 - mkdir -p /var/run/sshd
30 - mkdir -p /root/.ssh
edfebd9e 31 - echo "$ssh_key" >> /root/.ssh/authorized_keys
88126eba 32 - echo "$$ENV_SSH_PUB_KEY" >> /root/.ssh/authorized_keys
edfebd9e 33 - chmod 640 /root/.ssh/authorized_keys
553a4fc9
S
34 - rm /etc/update-motd.d/00-header
35 - rm /etc/update-motd.d/10-help-text
553a4fc9
S
36 - rm /etc/legal
37 - file:
38 path: /etc/update-motd.d/00-discourse
39 chmod: +x
40 contents: |
41 #!/bin/sh
42 echo
43 echo Welcome to Discourse Docker
44 echo