-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[Bug] Pre and post hook don't escape correctly the command #1969
Comments
Just to give more information with debug 2 level:
|
yes, do not use any special chars, like |
Thanks for your fast return. It is just it was more convient if we could not use a script. The final command i wanted to run as prehook was: Sure it can be prevented like you said by using a custom script running this command. Thanks. |
Does this apply to
Because this just started showing for me, and it's now running via cron, I'm not entirely sure what I need to do to fix it, although I did use a |
Yes I think this problem can be the same for the reloadcmd command. |
same as #2134 |
fixed, please try again. |
Hello,
First thank you for providing us this very nice script to manage let's encrypt certificats.
I would like to submit a bug which break renewal certificats.
Here is how to reproduce it.
Please run:
/root/.acme.sh/acme.sh --force --staging --standalone --issue -d www.my-domain.com --pre-hook "echo 'always return true' || true"
-> command will be ok
Run it a second or third time: you will get a
sed: -e expression #1, char 58: unknown option to
s'` like:If you remove the
|| true
in the hook, it work great and their is no more the sed problem.So the problem only appear with hook finishing by
|| true
.This problem don't just ouput this error message when generating certs, but break the configuration generation for the domain when renewing later (some config line are missing). The cronjob will fail and running manually
"/root/.acme.sh"/acme.sh --force --cron --home "/root/.acme.sh"
will send a errorPlease specify at least one validation method: '--webroot', '--standalone', '--apache', '--nginx' or '--dns' etc.
because some fields are missing in the configuration.I hope this bug can be corrected, because actually it is not possible to use
|| true
, and i think it reveals a deeper bug in the parser/generating configuration...Thanks.
The text was updated successfully, but these errors were encountered: