From 548fa18ef89d3ac01b79ddbe041ea70ce8b3b2ec Mon Sep 17 00:00:00 2001 From: Steven Seifried Date: Sun, 16 Jan 2022 19:50:26 +0100 Subject: [PATCH] Updated pihole_cloudflared_setup.sh --- pihole_cloudflared_setup.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pihole_cloudflared_setup.sh b/pihole_cloudflared_setup.sh index d67952b..45a3dc7 100644 --- a/pihole_cloudflared_setup.sh +++ b/pihole_cloudflared_setup.sh @@ -39,9 +39,9 @@ apt-get -qqy install \ sudo &>/dev/null msg "Installing cloudflared.." -wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb -sudo apt-get install ./cloudflared-linux-amd64.deb -sudo useradd -s /usr/sbin/nologin -r -M cloudflared +wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb &>/dev/null +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" @@ -53,7 +53,6 @@ EOF chown cloudflared:cloudflared /etc/default/cloudflared chown cloudflared:cloudflared /usr/local/bin/cloudflared -systemctl daemon-reload cat << EOF > $CLOUDFLARED_SERVICE [Unit] @@ -73,6 +72,8 @@ KillMode=process WantedBy=multi-user.target EOF +systemctl daemon-reload + msg "Installing Pi-hole.." curl -sSL https://install.pi-hole.net | bash