Browse Source

stubby: fix init script

The configuration file was not being generated.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
lilik-openwrt-22.03
Rosen Penev 5 years ago
parent
commit
b95699c647
No known key found for this signature in database GPG Key ID: 36D31CFA845F0E3B
2 changed files with 5 additions and 5 deletions
  1. +1
    -1
      net/stubby/Makefile
  2. +4
    -4
      net/stubby/files/stubby.init

+ 1
- 1
net/stubby/Makefile View File

@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=stubby PKG_NAME:=stubby
PKG_VERSION:=0.2.6 PKG_VERSION:=0.2.6
PKG_RELEASE:=3
PKG_RELEASE:=4
PKG_SOURCE_PROTO:=git PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL:=https://github.com/getdnsapi/$(PKG_NAME) PKG_SOURCE_URL:=https://github.com/getdnsapi/$(PKG_NAME)


+ 4
- 4
net/stubby/files/stubby.init View File

@ -20,7 +20,6 @@ boot()
generate_config() generate_config()
{ {
local config_file="$1"
local round_robin local round_robin
local tls_authentication local tls_authentication
local tls_query_padding_blocksize local tls_query_padding_blocksize
@ -205,7 +204,7 @@ generate_config()
} }
config_foreach handle_resolver resolver config_foreach handle_resolver resolver
} > "$config_file"
} > "$config_file_tmp"
start_service() { start_service() {
local config_file_tmp local config_file_tmp
@ -223,10 +222,11 @@ start_service() {
cp "$stubby_manual_config" "$stubby_config" cp "$stubby_manual_config" "$stubby_config"
else else
config_file_tmp="$stubby_config.$$" config_file_tmp="$stubby_config.$$"
generate_config "$config_file_tmp"
generate_config
mv "$config_file_tmp" "$stubby_config" mv "$config_file_tmp" "$stubby_config"
fi fi
chmod 0644 "$stubby_config"
chown stubby:stubby "$stubby_config"
chmod 0400 "$stubby_config"
config_get command_line_arguments "global" command_line_arguments "" config_get command_line_arguments "global" command_line_arguments ""


Loading…
Cancel
Save