Skip to content

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

@skels130

Description

@skels130

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions