mirror of
https://github.com/openwrt/packages.git
synced 2025-12-21 23:34:31 +04:00
acme: remove lock handling
Since procd is now used, the call of '/etc/init.d/acme' does not have to be locked separately. This code block can therefore be removed. Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
committed by
Toke Høiland-Jørgensen
parent
420210b318
commit
e73688d178
@@ -16,9 +16,6 @@ extra_command "renew" "Start a certificate renew"
|
|||||||
|
|
||||||
cleanup() {
|
cleanup() {
|
||||||
log debug "cleaning up"
|
log debug "cleaning up"
|
||||||
if [ -e $run_dir/lock ]; then
|
|
||||||
rm $run_dir/lock
|
|
||||||
fi
|
|
||||||
if [ "$NFT_HANDLE" ]; then
|
if [ "$NFT_HANDLE" ]; then
|
||||||
# $NFT_HANDLE contains the string 'handle XX' so pass it unquoted to nft
|
# $NFT_HANDLE contains the string 'handle XX' so pass it unquoted to nft
|
||||||
nft delete rule inet fw4 input $NFT_HANDLE
|
nft delete rule inet fw4 input $NFT_HANDLE
|
||||||
@@ -159,12 +156,6 @@ service_triggers() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
renew() {
|
renew() {
|
||||||
exec 200>$run_dir/lock
|
|
||||||
if ! flock -n 200; then
|
|
||||||
log err "Another ACME instance is already running."
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
trap cleanup EXIT
|
trap cleanup EXIT
|
||||||
|
|
||||||
config_load acme
|
config_load acme
|
||||||
|
|||||||
Reference in New Issue
Block a user