mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-08 23:20:56 +00:00
Move binary to final home.
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
parent
a0c17368ed
commit
2ffb103acb
@ -1153,7 +1153,7 @@ if [[ "${reconfigure}" == true ]]; then
|
|||||||
}
|
}
|
||||||
|
|
||||||
FTLinstall() {
|
FTLinstall() {
|
||||||
# Download and Install FTL binary
|
# Download and install FTL binary
|
||||||
local binary="${1}"
|
local binary="${1}"
|
||||||
local latesttag
|
local latesttag
|
||||||
local orig_dir
|
local orig_dir
|
||||||
@ -1174,25 +1174,25 @@ FTLinstall() {
|
|||||||
cd /tmp
|
cd /tmp
|
||||||
if sha1sum --status --quiet -c "${binary}".sha1; then
|
if sha1sum --status --quiet -c "${binary}".sha1; then
|
||||||
echo -n "transferred... "
|
echo -n "transferred... "
|
||||||
install -m 0755 /tmp/pihole-FTL /usr/bin
|
install -T -m 0755 /tmp/${binary} /usr/bin/pihole-FTL
|
||||||
touch /var/log/pihole-FTL.log /var/run/pihole-FTL.pid /var/run/pihole-FTL.port
|
touch /var/log/pihole-FTL.log /var/run/pihole-FTL.pid /var/run/pihole-FTL.port
|
||||||
chmod 0666 /var/log/pihole-FTL.log /var/run/pihole-FTL.pid /var/run/pihole-FTL.port
|
chmod 0666 /var/log/pihole-FTL.log /var/run/pihole-FTL.pid /var/run/pihole-FTL.port
|
||||||
cd "${orig_dir}"
|
cd "${orig_dir}"
|
||||||
|
echo "done."
|
||||||
return 0
|
return 0
|
||||||
else
|
else
|
||||||
echo "failed (download of binary from Github failed)"
|
echo "failed (download of binary from Github failed)"
|
||||||
cd "${orig_dir}"
|
cd "${orig_dir}"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
cd "${orig_dir}"
|
|
||||||
echo "done."
|
|
||||||
else
|
else
|
||||||
|
cd "${orig_dir}"
|
||||||
echo "failed (URL not found.)"
|
echo "failed (URL not found.)"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
FTLdetect() {
|
FTLdetect() {
|
||||||
# Download suitable FTL binary
|
# Detect suitable FTL binary platform
|
||||||
echo ":::"
|
echo ":::"
|
||||||
echo "::: Downloading latest version of FTL..."
|
echo "::: Downloading latest version of FTL..."
|
||||||
|
|
||||||
@ -1236,7 +1236,7 @@ FTLdetect() {
|
|||||||
binary="pihole-FTL-linux-x86_32"
|
binary="pihole-FTL-linux-x86_32"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
FTLinstall "${binary}" || return 1
|
FTLdownload "${binary}" || return 1
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user