|
@@ -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}
|