File tree Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Expand file tree Collapse file tree 3 files changed +13
-8
lines changed Original file line number Diff line number Diff line change 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 }}
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ COPY ./ /install_acme.sh/
2626RUN 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
3131RUN for verb in help \
3232 version \
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments