archive server private key must be an absolute path
This commit is contained in:
parent
9d539d59d0
commit
1feedb5c9e
@ -6,7 +6,7 @@ module SshCommands
|
||||
end
|
||||
|
||||
def ssh_execute server, cmd
|
||||
key_path = File.join(DevopsConfig.config[:keys_dir], server[:private_key])
|
||||
key_path = server[:private_key]
|
||||
ssh_cmd = "ssh -i #{key_path} #{server[:remote_user]}@#{server[:host]} '#{cmd}'"
|
||||
DevopsLogger.logger.info "Ssh command: #{ssh_cmd}"
|
||||
res = `#{ssh_cmd}`
|
||||
|
||||
Loading…
Reference in New Issue
Block a user