Ver Fonte

Обновить 'keygen.sh'

Vladimir Tomishinets há 7 anos atrás
pai
commit
def0b6a098
1 ficheiros alterados com 11 adições e 8 exclusões
  1. 11 8
      keygen.sh

+ 11 - 8
keygen.sh

@@ -1,17 +1,20 @@
 #!/bin/bash
-#git_url="ssh://git@git.sdsys.ru:8022/iru/openvpn-pki.git"
-#git_dir="openvpn-pki"
+git_url_pki="ssh://git@git.sdsys.ru:8022/iru/openvpn-pki.git"
+git_url_ovpn="ssh://git@git.sdsys.ru:8022/iru/openvpn.git"
+git_dir_pki="openvpn-pki"
 JENKINS_MAIL="jenkins@sdsys.ru"
 cd /
 GIT_SSH_COMMAND='ssh -i /tmp/keyfile -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' git clone ${git_url_pki}
 GIT_SSH_COMMAND='ssh -i /tmp/keyfile -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' git clone ${git_url_ovpn}
 
-stonevpn -f $1 -n "Development Tests" -z
+stonevpn -f $1 -n "$1" -z
 
 echo "Generate new key and cert for $1" > /tmp/commit.txt
 
-#git add -A
-#git config --global user.email "${JENKINS_MAIL}"
-#git config --global user.name "Jenkins"
-#git commit -F /tmp/commit.txt
-#GIT_SSH_COMMAND='ssh -i /tmp/keyfile -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' git push origin master
+cd ${git_dir_pki}
+
+git add -A
+git config --global user.email "${JENKINS_MAIL}"
+git config --global user.name "Jenkins"
+git commit -F /tmp/commit.txt
+GIT_SSH_COMMAND='ssh -i /tmp/keyfile -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' git push origin master