mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-03 12:40:56 +00:00
Add FTLinstall()
This commit is contained in:
parent
52a2f166fd
commit
6018c0c2fc
@ -1026,6 +1026,8 @@ installPihole() {
|
|||||||
fi
|
fi
|
||||||
installCron
|
installCron
|
||||||
installLogrotate
|
installLogrotate
|
||||||
|
FTLdownload
|
||||||
|
FTLinstall
|
||||||
configureFirewall
|
configureFirewall
|
||||||
finalExports
|
finalExports
|
||||||
#runGravity
|
#runGravity
|
||||||
@ -1057,6 +1059,8 @@ updatePihole() {
|
|||||||
fi
|
fi
|
||||||
installCron
|
installCron
|
||||||
installLogrotate
|
installLogrotate
|
||||||
|
FTLdownload
|
||||||
|
FTLinstall
|
||||||
finalExports #re-export setupVars.conf to account for any new vars added in new versions
|
finalExports #re-export setupVars.conf to account for any new vars added in new versions
|
||||||
#runGravity
|
#runGravity
|
||||||
}
|
}
|
||||||
@ -1178,9 +1182,14 @@ FTLdownload() {
|
|||||||
binary="pihole-FTL-linux-x86_32"
|
binary="pihole-FTL-linux-x86_32"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
curl -sSL "https://github.com/pi-hole/FTL/releases/latest/${binary}" -o "/etc/pihole/pihole-FTL"
|
curl -sSL "https://github.com/pi-hole/FTL/releases/latest/${binary}" -o "/opt/pihole/pihole-FTL"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
FTLinstall() {
|
||||||
|
install -m 0755 /opt/pihole-FTL /usr/local/bin
|
||||||
|
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
|
||||||
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user