fix ssh
This commit is contained in:
parent
40c5f5bc26
commit
094c867aca
|
@ -18,6 +18,11 @@ startup_check() {
|
||||||
echo Missing HOST in .env
|
echo Missing HOST in .env
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
if [[ ! -e "~/.ssh/authorized_keys" ]]; then
|
||||||
|
echo "Running ssh keyscan"
|
||||||
|
mkdir -p ~/.ssh
|
||||||
|
ssh-keyscan $HOST > ~/.ssh/authorized_keys
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -e "/id" ]]; then
|
if [[ ! -e "/id" ]]; then
|
||||||
|
|
Loading…
Reference in a new issue