ssh needs to be first right after runit, otherwise hard to extend
authorSam Saffron <sam.saffron@gmail.com>
Sun, 17 Nov 2013 21:43:41 +0000 (13:43 -0800)
committerSam Saffron <sam.saffron@gmail.com>
Sun, 17 Nov 2013 21:44:16 +0000 (13:44 -0800)
standalone.template.yml

index fb4f96e31ac49c74b9fda7e10edad9c795ed9b7b..3a3f39bd10c5b9461b29e97ece7c4591b7c40165 100644 (file)
@@ -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"