mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-30 20:34:04 +02:00
Update and rename 90-DNS_set.sh to 90-dns_set.sh
This commit is contained in:
@@ -1,8 +0,0 @@
|
|||||||
#!/usr/bin/with-contenv bashio
|
|
||||||
|
|
||||||
###############
|
|
||||||
# DNS SETTING #
|
|
||||||
###############
|
|
||||||
|
|
||||||
printf "nameserver 8.8.8.8 1.1.1.1" > /etc/resolv.conf
|
|
||||||
chmod 644 /etc/resolv.conf
|
|
||||||
12
qbittorrent/rootfs/etc/cont-init.d/90-dns_set.sh
Normal file
12
qbittorrent/rootfs/etc/cont-init.d/90-dns_set.sh
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
#!/usr/bin/with-contenv bashio
|
||||||
|
|
||||||
|
###############
|
||||||
|
# DNS SETTING #
|
||||||
|
###############
|
||||||
|
|
||||||
|
DNS="# Avoid usage of local dns such as adguard home or pihole\n"
|
||||||
|
DNS="${DNS}nameserver 8.8.8.8\n"
|
||||||
|
DNS="${DNS}nameserver 1.1.1.1"
|
||||||
|
printf "${DNS}" > /etc/resolv.conf
|
||||||
|
chmod 644 /etc/resolv.conf
|
||||||
|
|
||||||
Reference in New Issue
Block a user