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
Specify –domain with –cron option #3869
Comments
don't add
don't add any other options to There can be many certs(with different domains) on your system, the |
Thanks for the reply, I should clarify, that my actual cron job only runs on the 1st of every month at 12am, the actual crontab looks like this:
Since I need to space out the renewals becuase of the cron job getting terminated by my hosting provider after 5 minutes, is there a way to enable notifications when using
Or are notifications only enabled with --cron? Thanks again. |
please upgrade to the latest dev branch, it can send notifications in "renew".
Let me know if this is what you want. Thanks |
Thank You, tested and verified from both command line and a cron job, works like a charm :)
The above command performs the following perfectly:
Thanks again much appriciated |
Hi All,
Wondering if there is a way to specify the “—domain” option when using the “—cron” option?
The reason I ask is, I changed servers at my hosting provider and for some reason they have their SSH Timeout set to 5 minutes, but it’s set for the session itself and not as an idle timeout, I have tried getting them to change it or have a setting specific to my account, but they said it’s a global setting and cannot be set on a per user basis.
And this is where the problem occurs, I have 6 domain names which I use acme.sh for, the problem is when the cron job runs, because of sleep tiemouts etc during renewal. I can only get about 3 domains to renew automatically, I have to go in and manually do the rest each time the cron job runs.
My current crontab looks like this:
"$HOME/.acme.sh/acme.sh" --cron --home "$HOME/.acme.sh" --config-home "$HOME/.acme.sh/config" –force
I tried setting a cron job for each domain at different time intervals, but the problem is I do not get any Pushover notifications when the cron job runs, unless I’m missing an option somewhere, I tried using this crontab entry for each domain:
"$HOME/.acme.sh/acme.sh" --renew --domain $DOMAIN_NAME ; "$HOME/.acme.sh/acme.sh" --deploy --deploy-hook cpanel_uapi --domain $DOMAIN_NAME
Is there a way to specify the “—domain” option in the “—cron” command line, or if I have to do the “—renew” and “—deploy” options for each domain, that is fine, but how do I get notifications to work also?
What commands does the “—cron” option execute?
Thanks for your time and help
The text was updated successfully, but these errors were encountered: