|
@@ -16,7 +16,7 @@ if [ ! -d "${VSCS_SSH}" ]; then
|
|
|
mkdir --mode=0700 "${VSCS_SSH}"
|
|
|
touch "${VSCS_SSH}/config"
|
|
|
chmod 0644 "${VSCS_SSH}/config"
|
|
|
- echo "alias ssh-keygen='${SSH_KEYGEN}'" >> "${SNAP_USER_DATA}/.bashrc"
|
|
|
+ echo "alias ssh-keygen='ssh-keygen -f \"${VSCS_SSH}/id_rsa\"'" >> "${SNAP_USER_DATA}/.bashrc"
|
|
|
git config --global core.sshCommand "ssh -i \"${VSCS_SSH}/id_rsa\" -F \"${VSCS_SSH}/config\" -o BatchMode=yes -o StrictHostKeyChecking=accept-new -o UserKnownHostsFile=\"${VSCS_SSH}/known_hosts\""
|
|
|
fi
|
|
|
|