Tomishinets Vladimir hace 4 años
padre
commit
80619d0939
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      keygen.sh

+ 2 - 2
keygen.sh

@@ -7,7 +7,8 @@ cd /
 GIT_SSH_COMMAND='ssh -i /tmp/keyfile -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' git clone ${git_url}
 cd /${git_dir} && git checkout $2
 
-stonevpn -f $1 -n "$1" -z
+cname=$(echo $1|tr '[:upper:]' '[:lower:]')
+stonevpn -f ${cname} -n "${cname}" -z
 if [ $? != 0 ];then exit 1;fi
 
 echo "Generate new key and cert for $1" > /tmp/commit.txt
@@ -19,4 +20,3 @@ 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 $2
-