public
Description: Automate your wordpress deploys with capistrano and git
Homepage: http://www.jestro.com
Clone URL: git://github.com/jestro/wordpress-capistrano.git
fix ssh key generation
jnewland (author)
Mon Nov 24 11:25:54 -0800 2008
commit  045539400448bd5c4bc5c6b33bec05359a0ee3e9
tree    9542707d0600177b844839e3385b30c1e3b39e2b
parent  407aa4ccfc3b6b7254a2e92268a6cf756c51329d
...
54
55
56
 
57
58
59
60
61
 
62
63
64
...
54
55
56
57
58
59
60
61
62
63
64
65
66
0
@@ -54,11 +54,13 @@ Capistrano::Configuration.instance.load do
0
       run "groupadd -f wheel"
0
       run "useradd -g wheel wordpress || echo"
0
       reset_password
0
+      teardown_connections_to(sessions.keys)
0
       set :user, 'wordpress'
0
       generate_ssh_keys
0
     end
0
 
0
     task :generate_ssh_keys do
0
+      run "mkdir -p /home/wordpress/.ssh"
0
       run "ssh-keygen -q -f /home/wordpress/.ssh/id_rsa -N ''"
0
       pubkey = capture("cat /home/wordpress/.ssh/id_rsa.pub")
0
       puts "Below is a freshly generated SSH public key for your server."

Comments