[OpenWrt-Devel] Stubby is broken
    Rosen Penev 
    rosenp at gmail.com
       
    Tue Feb 25 16:41:03 EST 2020
    
    
  
On Tue, Feb 25, 2020 at 12:35 PM e9hack <e9hack at gmail.com> wrote:
>
> Hi,
>
> stubby is broken since this commit:
>
> commit  eaf522532324f9155d2d038e27006e5caaf9874a
> stubby: makefile and init script cleanup
>
> The necessary config file will be not create:
>
> /etc/rc.common: line 21: can't create : nonexistent directory
> mv: can't rename '/var/etc/stubby/stubby.yml.12277': No such file or directory
I don't see any of my init script changes breaking this.
Does this work?
--- a/net/stubby/files/stubby.init
+++ b/net/stubby/files/stubby.init
@@ -205,7 +205,7 @@ generate_config()
     }
     config_foreach handle_resolver resolver
-} > "$config_file"
+}
 start_service() {
     local config_file_tmp
@@ -223,7 +223,7 @@ start_service() {
         cp "$stubby_manual_config" "$stubby_config"
     else
         config_file_tmp="$stubby_config.$$"
-        generate_config "$config_file_tmp"
+        generate_config "$config_file_tmp" > "$config_file"
         mv "$config_file_tmp" "$stubby_config"
     fi
     chmod 0644 "$stubby_config"
>
> Regards,
> Hartmut
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
    
    
More information about the openwrt-devel
mailing list