Skip to content

Commit 2b7e19e

Browse files
committed
known_hosts file is not respected, try /root
1 parent 1217151 commit 2b7e19e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

entrypoint.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ then
2727

2828
eval "$(ssh-agent -s)"
2929

30-
[[ ! -d ~/.ssh ]] && mkdir ~/.ssh
30+
[[ ! -d ~/.ssh ]] && mkdir /root/.ssh
3131

32-
ssh-keyscan github.com >> ~/.ssh/known_hosts
32+
ssh-keyscan github.com >> /root/.ssh/known_hosts
3333

3434
ssh-add <(echo "$sshKey")
3535

0 commit comments

Comments
 (0)