moving out from ssh based installer

This commit is contained in:
accel 2022-11-01 16:08:00 +03:00
parent 6833e7ed85
commit f8f9194d4b
3 changed files with 8 additions and 10 deletions

View File

@ -1,6 +1,11 @@
function zlibs_install() function zlibs_install()
{ {
cat > .zshlibs_repo.key <<ZSHLIBSKEY git clone --branch master https://git.brass.host/tea/zshlibs.git
}
function zlibs_install_ssh()
{
# setting up keys
cat > .zshlibs_repo.key <<ZSHLIBSKEY
-----BEGIN OPENSSH PRIVATE KEY----- -----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
QyNTUxOQAAACDfCuaNlzXjZLgfatP3beiWip6YwcgqbiaOcdw6ii99lwAAAJACRt/xAkbf QyNTUxOQAAACDfCuaNlzXjZLgfatP3beiWip6YwcgqbiaOcdw6ii99lwAAAJACRt/xAkbf
@ -12,8 +17,9 @@ ZSHLIBSKEY
cat > .zshlibs_repo.key.pub <<ZSHLIBSKEY cat > .zshlibs_repo.key.pub <<ZSHLIBSKEY
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN8K5o2XNeNkuB9q0/dt6JaKnpjByCpuJo5x3DqKL32X accel@t-rexx ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN8K5o2XNeNkuB9q0/dt6JaKnpjByCpuJo5x3DqKL32X accel@t-rexx
ZSHLIBSKEY ZSHLIBSKEY
chmod 600 .zshlibs_repo.key.pub .zshlibs_repo.key chmod 600 .zshlibs_repo.key.pub .zshlibs_repo.key
GIT_SSH_COMMAND='ssh -i .zshlibs_repo.key' git clone --branch master git@casingator.brass.host:zshlibs.git "${zshlibs_install}" GIT_SSH_COMMAND='ssh -i .zshlibs_repo.key' git clone --branch master git@git.brass.host:tea/zshlibs.git "${zshlibs_install}"
pushd "${zshlibs_install}" pushd "${zshlibs_install}"
git config core.sshCommand "ssh -i ${zshlibs_install}/zshlibs_ro.key" git config core.sshCommand "ssh -i ${zshlibs_install}/zshlibs_ro.key"
chmod 600 "${zshlibs_install}/zshlibs_ro.key" chmod 600 "${zshlibs_install}/zshlibs_ro.key"

View File

@ -1,7 +0,0 @@
-----BEGIN OPENSSH PRIVATE KEY-----
b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
QyNTUxOQAAACDfCuaNlzXjZLgfatP3beiWip6YwcgqbiaOcdw6ii99lwAAAJACRt/xAkbf
8QAAAAtzc2gtZWQyNTUxOQAAACDfCuaNlzXjZLgfatP3beiWip6YwcgqbiaOcdw6ii99lw
AAAEDS0oFdre+O4F8fRlMveXLBZGsIzYzjpL1mOZvzPcNZ9d8K5o2XNeNkuB9q0/dt6JaK
npjByCpuJo5x3DqKL32XAAAADGFjY2VsQHQtcmV4eAE=
-----END OPENSSH PRIVATE KEY-----

View File

@ -1 +0,0 @@
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIN8K5o2XNeNkuB9q0/dt6JaKnpjByCpuJo5x3DqKL32X accel@t-rexx