]> git.99rst.org Git - openwrt-packages.git/commit
net/acme-acmesh: prevent concurrent execution of acme.sh instances
authorToke Høiland-Jørgensen <redacted>
Mon, 31 Aug 2026 08:55:12 +0000 (10:55 +0200)
committerToke Høiland-Jørgensen <redacted>
Mon, 31 Aug 2026 13:27:49 +0000 (15:27 +0200)
commit5f54a2b916cfc13b80ff094c98f43aa40f3769af
treeabad3732467f6027c09caaa30336b558208c429a
parent9d1f1f2bf4360f2ca5b0db2a3df9ec0086b560a9
net/acme-acmesh: prevent concurrent execution of acme.sh instances

After switching ACME to being run through procd, individual ACME
instances are now executed in parallel instead of sequentially. This
causes acme.sh to become confused in certain cases. Petr reported that
certificate files ended up with the wrong contents after updating to
OpenWrt 25.12.

Fix this by wrapping the acme.sh execution in a global `flock` keyed on
a file in the state directory. The procd instances will still run in
parallel, but they'll all serialise on the same lock, so only one
acme.sh instance will run at a time.

Fixes: 76b676e4ebbb ("acme.sh: move to procd to ensure logging gets to syslog")
Reported-by: Petr Novák <redacted>
Signed-off-by: Toke Høiland-Jørgensen <redacted>
net/acme-acmesh/Makefile
net/acme-acmesh/files/hook.sh
git clone https://git.99rst.org/PROJECT