OBT-SYSADM\tomishinets 6 anni fa
parent
commit
231cb24c53
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      generate.sh

+ 1 - 1
generate.sh

@@ -27,7 +27,7 @@ if [ -z "$*" ]; then message="letsencrypt. No domain specified!!!"; mail_send; e
 
 if [ -d /${git_dir} ]
 then
-  git_config && git pull https://${GIT_USER}:$(cat /run/secrets/provision-pass)@${GIT_URL} && git checkout ${branch}
+  git_config && git checkout ${branch} && git pull https://${GIT_USER}:$(cat /run/secrets/provision-pass)@${GIT_URL}
   if [ $? -ne 0 ];then message="letsencrypt. Can't pull https://${GIT_URL}"; mail_send; exit 1;fi
 else
   cd / && git clone https://${GIT_USER}:$(cat /run/secrets/provision-pass)@${GIT_URL} && cd /${git_dir} && git checkout ${branch}