Skip to content

Commit

Permalink
Remove the unknown hosts file option
Browse files Browse the repository at this point in the history
  • Loading branch information
William Mayor committed May 16, 2020
1 parent db19941 commit c70b731
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,13 @@ if [ -n "$FORCE_DEPLOY" ]; then
fi

GIT_SSH_COMMAND="ssh -p ${PORT-22} -i $SSH_PATH/deploy_key"

if [ -n "$HOST_KEY" ]; then
echo "Adding hosts key to known_hosts"
echo "$HOST_KEY" >> "$SSH_PATH/known_hosts"
chmod 600 "$SSH_PATH/known_hosts"
else
echo "Disabling host key checking"
GIT_SSH_COMMAND="$GIT_SSH_COMMAND -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
GIT_SSH_COMMAND="$GIT_SSH_COMMAND -o StrictHostKeyChecking=no"
fi

echo "The deploy is starting"
Expand Down

0 comments on commit c70b731

Please sign in to comment.