Check support files installed and permissions.
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
@@ -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
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user