acme-common: Create challenge directory on boot
authorToke Høiland-Jørgensen <toke@toke.dk>
Tue, 19 Nov 2024 13:31:54 +0000 (14:31 +0100)
committerToke Høiland-Jørgensen <toke@toke.dk>
Thu, 12 Dec 2024 19:49:06 +0000 (20:49 +0100)
commit76f17ab15b49a7cb666fcdc9fd3602a3dd527c7c
tree4675b0067ee585eed50f151784e59e131aec3e6e
parentedf093ff0441798696c8d09f3bb47b10b60acce8
acme-common: Create challenge directory on boot

The challenge directory (for webroot challenges) is on a tmpfs, which
means it doesn't exist on boot. Some web servers (uhttpd in particular)
don't like being configured to serve files from a non-existent
directory. So add a boot() section to the ACME init script that just
creates the challenge directory, and make sure it runs relatively early.
That should take care of the non-existent directory issue, while still
keeping the actual certificate renewal controlled by cron.

Signed-off-by: Toke Høiland-Jørgensen <toke@toke.dk>
net/acme-common/Makefile
net/acme-common/files/acme.init