Skip to content

Commit e26ce2f

Browse files
author
neil
committed
1 parent af5e592 commit e26ce2f

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

acme.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5765,6 +5765,9 @@ ${_skipped_msg}
57655765
fi
57665766
fi
57675767

5768+
if [ "$_TREAT_SKIP_AS_SUCCESS" ] && [ "$_ret" = "$RENEW_SKIP" ]; then
5769+
_ret=0
5770+
fi
57685771
return "$_ret"
57695772
}
57705773

@@ -6983,6 +6986,7 @@ cron() {
69836986

69846987
_info "Automatically upgraded to: $VER"
69856988
fi
6989+
_TREAT_SKIP_AS_SUCCESS="1"
69866990
renewAll
69876991
_ret="$?"
69886992
_ACME_IN_CRON=""
@@ -7230,6 +7234,7 @@ Parameters:
72307234
--local-address <ip> Specifies the standalone/tls server listening address, in case you have multiple ip addresses.
72317235
--listraw Only used for '--list' command, list the certs in raw format.
72327236
-se, --stop-renew-on-error Only valid for '--renew-all' command. Stop if one cert has error in renewal.
7237+
--treat-skip-as-success Only valid for '--renew-all' command. Treat skipped certs as success, return 0 instead of $RENEW_SKIP.
72337238
--insecure Do not check the server certificate, in some devices, the api server's certificate may not be trusted.
72347239
--ca-bundle <file> Specifies the path to the CA certificate bundle to verify api server's certificate.
72357240
--ca-path <directory> Specifies directory containing CA certificates in PEM format, used by wget or curl.
@@ -7710,6 +7715,9 @@ _process() {
77107715
-f | --force)
77117716
FORCE="1"
77127717
;;
7718+
--treat-skip-as-success | --treatskipassuccess)
7719+
_TREAT_SKIP_AS_SUCCESS="1"
7720+
;;
77137721
--staging | --test)
77147722
STAGE="1"
77157723
;;

0 commit comments

Comments
 (0)