acme-acmesh: Don't hard-code certificate directory
authorToke Høiland-Jørgensen <toke@toke.dk>
Wed, 14 Dec 2022 14:14:59 +0000 (15:14 +0100)
committerToke Høiland-Jørgensen <toke@toke.dk>
Wed, 14 Dec 2022 14:31:00 +0000 (15:31 +0100)
commit152a26da57ba18166cda5349d4597e909cb93f5e
tree21072ef6be1530a1b46c451346c7be7fc4dfe36b
parente3d6422dc551fae6a502a10a554296765e2c59f6
acme-acmesh: Don't hard-code certificate directory

The acme-acmesh package hardcoded the certificate path in its hook script.
Now that we export it as a variable we can avoid hard-coding and use the
variable version instead. Also factor out the linking of certificates into
a function so it's not repeated.

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
net/acme-acmesh/files/hook.sh