-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"renew" exit code #850
Comments
Sorry, that's designed. |
Should the current acme.sh version still return 2 when certificate renewal is skipped? /usr/local/share/acme.sh/acme.sh --cron --home /usr/local/share/acme.sh/[Sun Dec 29 17:39:23 CET 2019] ===Starting cron=== |
I understand this choice - if you want to know just if cert was renewed than 0 this situation only and 2 for all other scenarios. However it is a clear as well that in other scenarios you would like to treat return value as - is my daily executed process of checking cert validity working fine. And for this such return value is very inconvenient. |
Hey,
Running the command with "--renew" option (and renewal is skipped) it returns with exit code 2.
IMHO that should be exit code 0 because it is not an error in any way.
[root@host ~]# /opt/acme_sh/acme.sh --version
https://github.com/Neilpang/acme.sh
v2.6.9
[root@host ~]# /opt/acme_sh/acme.sh --renew -d asdf.test.name --ecc --certhome /opt/acme_sh/workingdir
[Tue May 16 19:32:28 CEST 2017] Renew: 'asdf.test.name'
[Tue May 16 19:32:28 CEST 2017] Skip, Next renewal time is: Fri Jul 14 20:24:32 UTC 2017
[Tue May 16 19:32:28 CEST 2017] Add '--force' to force to renew.
[root@host ~]# echo $?
2
[root@host ~]#
The text was updated successfully, but these errors were encountered: