浏览代码

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 月之前
父节点
当前提交
8f3b7ea66c
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      luci-app-ssr-plus/root/usr/share/shadowsocksr/update.lua

+ 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 = "^[!\\[@]+"