Leave resolving configuration to the system
While installing debian comes with a configuration for resolving and resolved is not necessary and causing problems in some cases (no IPv6, custom network setup, etc...) Thus it might be better to leave this configuration to the system administrator while installing the supervised way.
This commit is contained in:
parent
1669eb084e
commit
415a371bb2
3 changed files with 0 additions and 41 deletions
|
@ -27,19 +27,6 @@ systemctl daemon-reload
|
|||
info "Restarting NetworkManager"
|
||||
systemctl restart "${SERVICE_NM}"
|
||||
|
||||
# Set permissions of /etc/systemd/resolved.conf
|
||||
# check if file has correct permissions
|
||||
if [ "$(stat -c %a /etc/systemd/resolved.conf)" != "644" ]; then
|
||||
info "Setting permissions of /etc/systemd/resolved.conf"
|
||||
chmod 644 /etc/systemd/resolved.conf
|
||||
fi
|
||||
|
||||
# Enable and restart systemd-resolved
|
||||
info "Enable systemd-resolved"
|
||||
systemctl enable systemd-resolved.service> /dev/null 2>&1;
|
||||
info "Restarting systemd-resolved"
|
||||
systemctl restart systemd-resolved.service
|
||||
|
||||
# Check and fix systemd-journal-gatewayd socket location
|
||||
if [ ! -S "/run/systemd-journal-gatewayd.sock" ]; then
|
||||
info "Set up systemd-journal-gatewayd socket file"
|
||||
|
|
|
@ -78,6 +78,3 @@ dpkg-divert --package homeassistant-supervised --add --rename \
|
|||
|
||||
dpkg-divert --package homeassistant-supervised --add --rename \
|
||||
--divert /etc/docker/daemon.json.real /etc/docker/daemon.json
|
||||
|
||||
dpkg-divert --package homeassistant-supervised --add --rename \
|
||||
--divert /etc/systemd/resolved.conf.real /etc/systemd/resolved.conf
|
||||
|
|
|
@ -1,25 +0,0 @@
|
|||
# This file is part of systemd.
|
||||
#
|
||||
# systemd is free software; you can redistribute it and/or modify it
|
||||
# under the terms of the GNU Lesser General Public License as published by
|
||||
# the Free Software Foundation; either version 2.1 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# Entries in this file show the compile time defaults.
|
||||
# You can change settings by editing this file.
|
||||
# Defaults can be restored by simply deleting this file.
|
||||
#
|
||||
# See resolved.conf(5) for details
|
||||
|
||||
[Resolve]
|
||||
#DNS=
|
||||
#FallbackDNS=1.1.1.1 8.8.8.8 1.0.0.1 8.8.4.4 2606:4700:4700::1111 2001:4860:4860::8888 2606:4700:4700::1001 2001:4860:4860::8844
|
||||
#Domains=
|
||||
DNSSEC=no
|
||||
DNSOverTLS=no
|
||||
#MulticastDNS=yes
|
||||
#LLMNR=yes
|
||||
#Cache=yes
|
||||
DNSStubListener=no
|
||||
#ReadEtcHosts=yes
|
||||
#ResolveUnicastSingleLabel=no
|
Loading…
Reference in a new issue