Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'sshkit'
- require 'sshkit/dsl'
- on ['deployer@XX.79.200.XXX'] do
- # upload! '/home/john/Downloads/__thepact_com/__thepact_com.crt', '/home/deployer/__thepact_com.crt'
- # upload! '/home/john/Downloads/__thepact_com/__thepact_com.p7b', '/home/deployer/__thepact_com.p7b'
- upload! '/home/john/Downloads/__thepact_com/__thepact_com.ca-bundle', '/home/deployer/__thepact_com.ca-bundle'
- within '/home/deployer/' do
- # execute 'sudo', 'mv', '/home/deployer/__thepact_com.crt', '/opt/nginx/ssl/__thepact_com.crt'
- # execute 'sudo', 'mv', '/home/deployer/__thepact_com.p7b', '/opt/nginx/ssl/__thepact_com.p7b'
- execute 'sudo', 'mv', '/home/deployer/__thepact_com.ca-bundle', '/opt/nginx/ssl/__thepact_com.ca-bundle'
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement