mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-26 01:00:33 +00:00
Check support files installed and permissions.
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
parent
8eeb8ad779
commit
4cd598ae10
2 changed files with 17 additions and 3 deletions
|
@ -1175,8 +1175,8 @@ FTLinstall() {
|
|||
if sha1sum --status --quiet -c "${binary}".sha1; then
|
||||
echo -n "transferred... "
|
||||
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
|
||||
chmod 0666 /var/log/pihole-FTL.log /var/run/pihole-FTL.pid /var/run/pihole-FTL.port
|
||||
touch /var/log/pihole-FTL.log /run/pihole-FTL.pid /run/pihole-FTL.port
|
||||
chmod 0644 /var/log/pihole-FTL.log /run/pihole-FTL.pid /run/pihole-FTL.port
|
||||
cd "${orig_dir}"
|
||||
echo "done."
|
||||
return 0
|
||||
|
@ -1236,7 +1236,7 @@ FTLdetect() {
|
|||
binary="pihole-FTL-linux-x86_32"
|
||||
fi
|
||||
|
||||
FTLdownload "${binary}" || return 1
|
||||
FTLinstall "${binary}" || return 1
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue