From 8b79017d0f05e84b5eac5ccc44477252c2ad928c Mon Sep 17 00:00:00 2001 From: DL6ER Date: Sun, 18 Feb 2018 13:07:22 +0100 Subject: [PATCH] Always replace pihole-FTL.service Signed-off-by: DL6ER --- automated install/basic-install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 869dc57f..b694b527 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -1754,6 +1754,9 @@ FTLinstall() { return 1 fi + # Always replace pihole-FTL.service + install -T -m 0755 "${PI_HOLE_LOCAL_REPO}/advanced/pihole-FTL.service" "/etc/init.d/pihole-FTL" + # If the download worked, if curl -sSL --fail "https://github.com/pi-hole/FTL/releases/download/${latesttag%$'\r'}/${binary}" -o "/tmp/${binary}"; then # get sha1 of the binary we just downloaded for verification. @@ -1773,7 +1776,6 @@ FTLinstall() { # Move back into the original directory the user was in cd "${orig_dir}" # Install the FTL service - install -T -m 0755 "${PI_HOLE_LOCAL_REPO}/advanced/pihole-FTL.service" "/etc/init.d/pihole-FTL" echo -e "${OVER} ${TICK} ${str}" return 0 # Otherise,