From 6c5c3034cb025c5681b98af108dc75a7265fd1b8 Mon Sep 17 00:00:00 2001 From: Steven Seifried Date: Sun, 16 Jan 2022 20:32:55 +0100 Subject: [PATCH] Updated pihole_cloudflared_setup.sh --- pihole_cloudflared_setup.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pihole_cloudflared_setup.sh b/pihole_cloudflared_setup.sh index 69969c1..82a1f72 100644 --- a/pihole_cloudflared_setup.sh +++ b/pihole_cloudflared_setup.sh @@ -44,8 +44,6 @@ sudo apt-get install ./cloudflared-linux-amd64.deb &>/dev/null sudo useradd -s /usr/sbin/nologin -r -M cloudflared &>/dev/null CLOUDFLARED_CONF="/etc/default/cloudflared" -CLOUDFLARED_SERVICE="/etc/systemd/system/cloudflared.service" - cat << EOF > $CLOUDFLARED_CONF # Commandline args for cloudflared, using Cloudflare DNS CLOUDFLARED_OPTS=--port 5053 --upstream https://1.1.1.1/dns-query --upstream https://1.0.0.1/dns-query @@ -54,6 +52,7 @@ EOF chown cloudflared:cloudflared /etc/default/cloudflared chown cloudflared:cloudflared /usr/local/bin/cloudflared +CLOUDFLARED_SERVICE="/etc/systemd/system/cloudflared.service" cat << EOF > $CLOUDFLARED_SERVICE [Unit] Description=cloudflared DNS over HTTPS proxy