From ce9a81723b22550f76b93d128981f518b574382e Mon Sep 17 00:00:00 2001 From: Weyert de Boer Date: Mon, 1 Oct 2018 19:27:55 +0100 Subject: [PATCH 1/2] Allow passing a port to clone:allow Allow passing a port as second argument so domains were SSH is running on a different port then 22 are supported too --- functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions b/functions index 55bc75b..bf63ba8 100755 --- a/functions +++ b/functions @@ -56,11 +56,11 @@ clone_key_cmd() { clone_allow_cmd() { declare desc="adds a domain to known_hosts" - declare DOMAIN="$2" + declare DOMAIN="$2" TAGNAME="${3:-22}" local cmd="$1" [[ -z $2 ]] && dokku_log_fail "Please supply a git domain ie 'dokku clone:allow github.com'" - ssh-keyscan -t rsa "$DOMAIN" >> "$DOKKU_ROOT/.ssh/known_hosts" + ssh-keyscan -t rsa -p "$PORT" "$DOMAIN" >> "$DOKKU_ROOT/.ssh/known_hosts" dokku_log_info1 "$DOMAIN added to known hosts" } From 826e81d869f98fcdbd7278dd0f7763940ce921fa Mon Sep 17 00:00:00 2001 From: Weyert de Boer Date: Mon, 1 Oct 2018 19:33:51 +0100 Subject: [PATCH 2/2] Fixed typo --- functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions b/functions index bf63ba8..2a089f9 100755 --- a/functions +++ b/functions @@ -56,7 +56,7 @@ clone_key_cmd() { clone_allow_cmd() { declare desc="adds a domain to known_hosts" - declare DOMAIN="$2" TAGNAME="${3:-22}" + declare DOMAIN="$2" PORT="${3:-22}" local cmd="$1" [[ -z $2 ]] && dokku_log_fail "Please supply a git domain ie 'dokku clone:allow github.com'"