mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Always replace pihole-FTL.service
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
parent
5465ac9ba0
commit
8b79017d0f
1 changed files with 3 additions and 1 deletions
|
@ -1754,6 +1754,9 @@ FTLinstall() {
|
||||||
return 1
|
return 1
|
||||||
fi
|
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 the download worked,
|
||||||
if curl -sSL --fail "https://github.com/pi-hole/FTL/releases/download/${latesttag%$'\r'}/${binary}" -o "/tmp/${binary}"; then
|
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.
|
# 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
|
# Move back into the original directory the user was in
|
||||||
cd "${orig_dir}"
|
cd "${orig_dir}"
|
||||||
# Install the FTL service
|
# 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}"
|
echo -e "${OVER} ${TICK} ${str}"
|
||||||
return 0
|
return 0
|
||||||
# Otherise,
|
# Otherise,
|
||||||
|
|
Loading…
Reference in a new issue