Skip to content
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

hook script doesn't work when called from bash/cron script #9

Open
skels130 opened this issue Jan 10, 2024 · 0 comments
Open

hook script doesn't work when called from bash/cron script #9

skels130 opened this issue Jan 10, 2024 · 0 comments

Comments

@skels130
Copy link

So I use this script to automate SSL certificates, but had issues with cli53 not being recognized when called from a script. On Debian, all I had to do was specify the path in the 3 places cli53 is referenced to /usr/local/bin/cli53. I'm not sure if making that change would potentially create issues for other distros though.

Could we instead add to the script something like

cli53Path = which cli53

and then replace the cli53 command with a $cli53Path? ie: ${cli53Path} rrcreate --append --wait "${ZONE}" "_acme-challenge.${DOMAIN}. 60 TXT ${TOKEN_VALUE}"

I'm not the best at scripting, but I thought I would throw the idea out there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant