Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias K <6317548+theCalcaholic@users.noreply.github.com>2022-03-26 23:11:24 +0300
committernachoparker <nacho@ownyourbits.com>2022-03-31 02:19:50 +0300
commit99a3c45592abc4937b12f2f93b0e81a6aa3fd97d (patch)
treecdedad7e7e1b0a3e035a8d0632c9fbdc9d2b1332 /bin/ncp/NETWORKING/dnsmasq.sh
parentcd98b50da7b3f7f840d264e87c51533fd1d10f4c (diff)
dnsmasq.sh: Workaround dnsmasq startup failure bugv1.46.10
Signed-off-by: Tobias K <6317548+theCalcaholic@users.noreply.github.com>
Diffstat (limited to 'bin/ncp/NETWORKING/dnsmasq.sh')
-rw-r--r--bin/ncp/NETWORKING/dnsmasq.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/bin/ncp/NETWORKING/dnsmasq.sh b/bin/ncp/NETWORKING/dnsmasq.sh
index 587dc4e3..368403e9 100644
--- a/bin/ncp/NETWORKING/dnsmasq.sh
+++ b/bin/ncp/NETWORKING/dnsmasq.sh
@@ -13,7 +13,15 @@ install()
{
apt-get update
apt-get install --no-install-recommends -y dnsmasq
+ rc=0
+ service dnsmasq status > /dev/null 2>&1 || rc=$?
+ [[ $rc -eq 3 ]] && {
+ echo "Applying workaround for dnsmasq bug (compare issue #1446)"
+ service systemd-resolved stop
+ service dnsmasq start
+ }
update-rc.d dnsmasq disable
+ service dnsmasq stop
[[ "$DOCKERBUILD" == 1 ]] && {
cat > /etc/services-available.d/100dnsmasq <<EOF