pihole-ftl: update 6.1 -> 6.2.2

Apply some review suggestions by @dotlambda
This commit is contained in:
williamvds 2025-06-07 17:33:29 +01:00
parent f98ba0c331
commit e8b98ec709
No known key found for this signature in database
GPG key ID: 7A4DF5A8CDBD49C7
2 changed files with 7 additions and 6 deletions

View file

@ -26,7 +26,7 @@ in
if [ ! -f '${cfg.stateDirectory}'/gravity.db ]; then
$pihole -g
# Send SIGRTMIN to FTL, which makes it reload the database, opening the newly created one
${pkgs.procps}/bin/kill -s SIGRTMIN $(systemctl show --property MainPID --value ${config.systemd.services.pihole-ftl.name})
${lib.getExe' pkgs.procps "kill"} -s SIGRTMIN $(systemctl show --property MainPID --value ${config.systemd.services.pihole-ftl.name})
fi
source ${pihole}/usr/share/pihole/advanced/Scripts/api.sh
@ -61,7 +61,7 @@ in
for i in 1 2 3; do
(TestAPIAvailability) && break
echo "Retrying API shortly..."
${pkgs.coreutils}/bin/sleep .5s
${lib.getExe' pkgs.coreutils "sleep"} .5s
done;
LoginAPI