This commit is contained in:
Alexandre
2022-05-02 20:49:23 +02:00
committed by GitHub
parent 8270653ada
commit bb06b339ae

View File

@@ -27,7 +27,8 @@ if bashio::config.has_value 'DNS_server'; then
done
# Only add DNS if there are DNS set
if [[ -n "$DNS" ]]; then
# shellcheck disable=SC2236
if [[ ! -z "$DNS" ]]; then
# Write resolv.conf
# shellcheck disable=SC2059
printf "${DNS}" >/etc/resolv.conf