2
0
Эх сурвалжийг харах

luci-app-ssr-plus: Fix `cp: can't create '/dnsmasq-ssrplus.d/gfw_list.conf': No such file or directory`.

Signed-off-by: Zxl hhyccc <[email protected]>
zxl hhyccc 11 сар өмнө
parent
commit
8f3b7ea66c

+ 1 - 0
luci-app-ssr-plus/root/usr/share/shadowsocksr/update.lua

@@ -10,6 +10,7 @@ local icount = 0
 local args = arg[1]
 local uci = luci.model.uci.cursor()
 local TMP_DNSMASQ_PATH = "${DNSMASQ_CONF_DIR%*/}/dnsmasq-ssrplus.d"
+luci.sys.call("mkdir -p " .. TMP_DNSMASQ_PATH)
 local TMP_PATH = "/var/etc/ssrplus"
 -- match comments/title/whitelist/ip address/excluded_domain
 local comment_pattern = "^[!\\[@]+"