From 2bb10d0c2c9a2517acea9cadeaf2d390066f72f4 Mon Sep 17 00:00:00 2001 From: Stan Grishin Date: Sun, 19 Feb 2023 20:22:32 +0000 Subject: [PATCH] simple-adblock: bugfix: ensure directory for jsonFile is created Signed-off-by: Stan Grishin --- net/simple-adblock/Makefile | 2 +- net/simple-adblock/files/simple-adblock.init | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/net/simple-adblock/Makefile b/net/simple-adblock/Makefile index abd0309986..bb4852502e 100644 --- a/net/simple-adblock/Makefile +++ b/net/simple-adblock/Makefile @@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=simple-adblock PKG_VERSION:=1.9.4 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_MAINTAINER:=Stan Grishin PKG_LICENSE:=GPL-3.0-or-later diff --git a/net/simple-adblock/files/simple-adblock.init b/net/simple-adblock/files/simple-adblock.init index 10fb295327..1522569abb 100644 --- a/net/simple-adblock/files/simple-adblock.init +++ b/net/simple-adblock/files/simple-adblock.init @@ -409,7 +409,7 @@ load_environment() { ;; esac - for i in "$outputFile" "$outputCache" "$outputGzip"; do + for i in "$jsonFile" "$outputFile" "$outputCache" "$outputGzip"; do if ! mkdir -p "$(dirname "$i")"; then if [ "$param" != 'quiet' ]; then json add error "errorOutputDirCreate" "$i" @@ -668,6 +668,7 @@ json() { json_add_string reload "$reload" json_add_string restart "$restart" json_close_object + mkdir -p "$(dirname "$jsonFile")" json_dump > "$jsonFile" sync } -- 2.30.2