Browse Source

cache-domains: Fixed host files directory

* Hid unnecessary output

Signed-off-by: Gerard Ryan <G.M0N3Y.2503@gmail.com>
lilik-openwrt-22.03
Gerard Ryan 3 years ago
parent
commit
8afdaf1195
2 changed files with 4 additions and 4 deletions
  1. +1
    -1
      utils/cache-domains/Makefile
  2. +3
    -3
      utils/cache-domains/files/cache-domains

+ 1
- 1
utils/cache-domains/Makefile View File

@ -1,7 +1,7 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=cache-domains
PKG_VERSION:=2.2.0
PKG_VERSION:=2.2.1
PKG_RELEASE:=1
PKG_MAINTAINER:=Gerard Ryan <G.M0N3Y.2503@gmail.com>


+ 3
- 3
utils/cache-domains/files/cache-domains View File

@ -6,7 +6,7 @@ set -e
CACHE_DOMAINS_SRC="https://api.github.com/repos/uklans/cache-domains/tarball/master"
CACHE_DOMAINS_DIR="/var/cache-domains"
CACHE_DOMAINS_HOSTS_DIR="${CACHE_DOMAINS_DIR}/scripts/output/dnsmasq"
CACHE_DOMAINS_HOSTS_DIR="${CACHE_DOMAINS_DIR}/scripts/output/dnsmasq/hosts"
CONFIG_FILE="/etc/cache-domains.json"
uci_changes() {
@ -41,8 +41,8 @@ configure() {
INITIAL_DIR="$(pwd)"
cd "${CACHE_DOMAINS_DIR}/scripts/"
cp "${CONFIG_FILE}" "config.json"
./create-dnsmasq.sh
rm "config.json" "${CACHE_DOMAINS_HOSTS_DIR}/lancache.conf"
./create-dnsmasq.sh > /dev/null
rm "config.json" "${CACHE_DOMAINS_HOSTS_DIR}/../lancache.conf"
cd "${INITIAL_DIR}"
while uci_get "dhcp" "@dnsmasq[${I}]" > /dev/null; do


Loading…
Cancel
Save