mirror of
https://github.com/diaspora/diaspora.git
synced 2026-04-29 03:01:03 -04:00
Getting the deployment changes from master
This commit is contained in:
@@ -1,20 +1,22 @@
|
||||
package :git, :provides => :scm do
|
||||
description 'Git Distributed Version Control'
|
||||
apt %w( git-core ) do
|
||||
pre :install, "mkdir -p /root/.ssh/"
|
||||
end
|
||||
apt %w( git-core )
|
||||
requires :pubkey
|
||||
requires :privkey
|
||||
requires :known_hosts
|
||||
|
||||
end
|
||||
|
||||
package :privkey do
|
||||
description 'checkout from github with it'
|
||||
transfer "#{File.dirname(__FILE__)}/../deploy_key/id_rsa", '/root/.ssh/id_rsa', :render => false
|
||||
transfer "#{File.dirname(__FILE__)}/../deploy_key/id_rsa", '/root/.ssh/id_rsa', :render => false do
|
||||
pre :install, "rm -rf /root/.ssh/ && mkdir -p /root/.ssh/"
|
||||
post :install, "chmod go-rwx /root/.ssh/id_rsa"
|
||||
end
|
||||
end
|
||||
|
||||
package :pubkey do
|
||||
transfer "#{File.dirname(__FILE__)}/../deploy_key/id_rsa.pub", '/root/.ssh/id_rsa.pub', :render => false
|
||||
transfer "#{File.dirname(__FILE__)}/../deploy_key/id_rsa.pub", '/root/.ssh/id_rsa.pub', :render => false
|
||||
requires :privkey
|
||||
requires :known_hosts
|
||||
end
|
||||
|
||||
package :known_hosts do
|
||||
|
||||
Reference in New Issue
Block a user