From: Sam Saffron Date: Sun, 17 Nov 2013 21:43:41 +0000 (-0800) Subject: ssh needs to be first right after runit, otherwise hard to extend X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d1cf69001227738d4e0e4bc997ec66c6a0be566d;p=discourse_docker.git ssh needs to be first right after runit, otherwise hard to extend --- diff --git a/standalone.template.yml b/standalone.template.yml index fb4f96e..3a3f39b 100644 --- a/standalone.template.yml +++ b/standalone.template.yml @@ -117,6 +117,11 @@ run: exec 2>&1 exec sudo -u postgres /usr/lib/postgresql/9.2/bin/postmaster -D /etc/postgresql/9.2/main + - exec: + cmd: + - mkdir -p /var/run/sshd + - mkdir -p /root/.ssh + - echo $ssh_key >> /root/.ssh/authorized_keys - exec: cd: $home @@ -139,11 +144,6 @@ run: - ln -s /shared/uploads $home/public/uploads - chown -R discourse /shared/uploads - chown -R discourse /shared/log/rails - - exec: - cmd: - - mkdir -p /var/run/sshd - - mkdir -p /root/.ssh - - echo $ssh_key >> /root/.ssh/authorized_keys - exec: cmd: - "cp $home/config/nginx.sample.conf /etc/nginx/conf.d/discourse.conf"