Tomishinets Vladimir %!s(int64=3) %!d(string=hai) anos
pai
achega
80619d0939
Modificáronse 1 ficheiros con 2 adicións e 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
-