mirror of
https://github.com/deployphp/action.git
synced 2025-04-01 19:06:35 +00:00
parent
3ec9786507
commit
0a2e0f4c6d
1 changed files with 1 additions and 1 deletions
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…
Add table
Reference in a new issue