Commit bc8d6c7d authored by nanahira's avatar nanahira

fix

parent 60c3c125
...@@ -27,35 +27,35 @@ dualstack-ip-selection yes ...@@ -27,35 +27,35 @@ dualstack-ip-selection yes
{% if smartdns.udp_dns is defined and smartdns.udp_dns %} {% if smartdns.udp_dns is defined and smartdns.udp_dns %}
# UDP DNSes # UDP DNSes
{% for dns in smartdns.udp_dns %} {% for dns in smartdns.udp_dns %}
server {{dns}} -group ovsersea server {{dns}} -group oversea
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% if smartdns.tcp_dns is defined and smartdns.tcp_dns %} {% if smartdns.tcp_dns is defined and smartdns.tcp_dns %}
# TCP DNSes # TCP DNSes
{% for dns in smartdns.tcp_dns %} {% for dns in smartdns.tcp_dns %}
server-tcp {{dns}} -group ovsersea server-tcp {{dns}} -group oversea
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% if smartdns.tls_dns is defined and smartdns.tls_dns %} {% if smartdns.tls_dns is defined and smartdns.tls_dns %}
# TLS DNSes # TLS DNSes
{% for dns in smartdns.tls_dns %} {% for dns in smartdns.tls_dns %}
server-tls {{dns}} -group ovsersea server-tls {{dns}} -group oversea
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% if smartdns.https_dns is defined and smartdns.https_dns %} {% if smartdns.https_dns is defined and smartdns.https_dns %}
# HTTPS DNSes # HTTPS DNSes
{% for dns in smartdns.https_dns %} {% for dns in smartdns.https_dns %}
server-https https://{{dns}}/dns-query -group ovsersea server-https https://{{dns}}/dns-query -group oversea
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% if smartdns.trusted_dns is defined and smartdns.trusted_dns %} {% if smartdns.trusted_dns is defined and smartdns.trusted_dns %}
# Trusted DNSes # Trusted DNSes
{% for dns in smartdns.trusted_dns %} {% for dns in smartdns.trusted_dns %}
server {{dns}} -group ovsersea server {{dns}} -group oversea
{% endfor %} {% endfor %}
{% endif %} {% endif %}
......
...@@ -5,7 +5,7 @@ download_repo() { ...@@ -5,7 +5,7 @@ download_repo() {
REPO_URL=$2 REPO_URL=$2
echo "Downloading $REPO_DIR" echo "Downloading $REPO_DIR"
if [ -d "$REPO_DIR" ]; then if [ -d "$REPO_DIR" ]; then
(cd "$REPO_DIR" && git pull --depth 1) (cd "$REPO_DIR" && git fetch origin && git reset --hard FETCH_HEAD)
else else
git clone --depth 1 "$REPO_URL" "$REPO_DIR" git clone --depth 1 "$REPO_URL" "$REPO_DIR"
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment