summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGordon GECOS <u@adam>2020-10-14 11:35:29 -0400
committerGordon GECOS <u@adam>2020-10-14 11:35:29 -0400
commit12d751313e23dfa3166e97a107c0daebbf5d9866 (patch)
tree5853acdc35040e155d3586120104c7ecab614f66
parent60735b0578f384044b208e5dd456d2b0685ed6cc (diff)
use system ed25519 key to authenticate to upstream
-rw-r--r--selfpublish.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/selfpublish.sh b/selfpublish.sh
index f244dbd..299c381 100644
--- a/selfpublish.sh
+++ b/selfpublish.sh
@@ -614,7 +614,8 @@ write_cgit_config()
614 then 614 then
615 mkdir -p "$cgit_scan_dir" 615 mkdir -p "$cgit_scan_dir"
616 (cd "$cgit_scan_dir" 616 (cd "$cgit_scan_dir"
617 git clone --bare "$UPSTREAM" selfpublish.sh) 617 GIT_SSH_COMMAND='ssh -i /etc/ssh/ssh_host_ed25519_key' \
618 git clone --bare "$UPSTREAM" selfpublish.sh)
618 else 619 else
619 git push --all "$cgit_scan_dir"/selfpublish.sh 620 git push --all "$cgit_scan_dir"/selfpublish.sh
620 fi 621 fi