Browse Source

add lowcase

Tomishinets Vladimir 4 years ago
parent
commit
80619d0939
1 changed files with 2 additions and 2 deletions
  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
-