mirror of
https://github.com/deployphp/action.git
synced 2024-11-26 21:59:02 +00:00
parent
3ec9786507
commit
938f1ee6ef
2
index.js
2
index.js
@ -25,7 +25,7 @@ function ssh() {
|
|||||||
|
|
||||||
let knownHosts = core.getInput('known-hosts')
|
let knownHosts = core.getInput('known-hosts')
|
||||||
if (knownHosts === '') {
|
if (knownHosts === '') {
|
||||||
fs.appendFileSync(`/etc/ssh/ssh_config`, `StrictHostKeyChecking no`)
|
fs.appendFileSync(`${ssh}/config`, `StrictHostKeyChecking no`)
|
||||||
} else {
|
} else {
|
||||||
fs.appendFileSync(`${ssh}/known_hosts`, knownHosts)
|
fs.appendFileSync(`${ssh}/known_hosts`, knownHosts)
|
||||||
fs.chmodSync(`${ssh}/known_hosts`, '644')
|
fs.chmodSync(`${ssh}/known_hosts`, '644')
|
||||||
|
Loading…
Reference in New Issue
Block a user