keygen.sh 736 B

1234567891011121314151617
  1. #!/bin/bash
  2. #git_url="ssh://git@git.sdsys.ru:8022/iru/openvpn-pki.git"
  3. #git_dir="openvpn-pki"
  4. JENKINS_MAIL="jenkins@sdsys.ru"
  5. cd /
  6. GIT_SSH_COMMAND='ssh -i /tmp/keyfile -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' git clone ${git_url_pki}
  7. GIT_SSH_COMMAND='ssh -i /tmp/keyfile -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' git clone ${git_url_ovpn}
  8. stonevpn -f $1 -n "Development Tests" -z
  9. echo "Generate new key and cert for $1" > /tmp/commit.txt
  10. #git add -A
  11. #git config --global user.email "${JENKINS_MAIL}"
  12. #git config --global user.name "Jenkins"
  13. #git commit -F /tmp/commit.txt
  14. #GIT_SSH_COMMAND='ssh -i /tmp/keyfile -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' git push origin master