소스 검색

no message

OBT-SYSADM\tomishinets 6 년 전
부모
커밋
231cb24c53
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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}