Skip to content

Commit c8f48a4

Browse files
authored
Merge pull request #4478 from acmesh-official/dev
sync
2 parents 71c273f + c2ad1b4 commit c8f48a4

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed

.github/workflows/dockerhub.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ jobs:
2828
id: step_one
2929
run: |
3030
if [ "$DOCKER_PASSWORD" ] ; then
31-
echo "::set-output name=hasToken::true"
31+
echo "hasToken=true" >>$GITHUB_OUTPUT
3232
else
33-
echo "::set-output name=hasToken::false"
33+
echo "hasToken=false" >>$GITHUB_OUTPUT
3434
fi
3535
- name: Check the value
3636
run: echo ${{ steps.step_one.outputs.hasToken }}

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ COPY ./ /install_acme.sh/
2626
RUN cd /install_acme.sh && ([ -f /install_acme.sh/acme.sh ] && /install_acme.sh/acme.sh --install || curl https://get.acme.sh | sh) && rm -rf /install_acme.sh/
2727

2828

29-
RUN ln -s /root/.acme.sh/acme.sh /usr/local/bin/acme.sh && crontab -l | grep acme.sh | sed 's#> /dev/null##' | crontab -
29+
RUN ln -s /root/.acme.sh/acme.sh /usr/local/bin/acme.sh && crontab -l | grep acme.sh | sed 's#> /dev/null#> /proc/1/fd/1 2>/proc/1/fd/2#' | crontab -
3030

3131
RUN for verb in help \
3232
version \

acme.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1852,9 +1852,14 @@ _inithttp() {
18521852
_ACME_CURL="$_ACME_CURL --cacert $CA_BUNDLE "
18531853
fi
18541854

1855-
if _contains "$(curl --help 2>&1)" "--globoff"; then
1855+
if _contains "$(curl --help 2>&1)" "--globoff" || _contains "$(curl --help curl 2>&1)" "--globoff"; then
18561856
_ACME_CURL="$_ACME_CURL -g "
18571857
fi
1858+
1859+
#from curl 7.76: return fail on HTTP errors but keep the body
1860+
if _contains "$(curl --help http 2>&1)" "--fail-with-body"; then
1861+
_ACME_CURL="$_ACME_CURL --fail-with-body "
1862+
fi
18581863
fi
18591864

18601865
if [ -z "$_ACME_WGET" ] && _exists "wget"; then
@@ -1872,11 +1877,11 @@ _inithttp() {
18721877
elif [ "$CA_BUNDLE" ]; then
18731878
_ACME_WGET="$_ACME_WGET --ca-certificate=$CA_BUNDLE "
18741879
fi
1875-
fi
18761880

1877-
#from wget 1.14: do not skip body on 404 error
1878-
if [ "$_ACME_WGET" ] && _contains "$($_ACME_WGET --help 2>&1)" "--content-on-error"; then
1879-
_ACME_WGET="$_ACME_WGET --content-on-error "
1881+
#from wget 1.14: do not skip body on 404 error
1882+
if _contains "$(wget --help 2>&1)" "--content-on-error"; then
1883+
_ACME_WGET="$_ACME_WGET --content-on-error "
1884+
fi
18801885
fi
18811886

18821887
__HTTP_INITIALIZED=1

0 commit comments

Comments
 (0)