mirror of
https://github.com/pi-hole/docker-pi-hole.git
synced 2025-12-20 02:18:51 +00:00
Utilise the FTL post-stop script that we install during container build.
This ensures that all leftover files are cleaned up in line with a bare metal install
This commit is contained in:
@@ -52,9 +52,8 @@ start() {
|
|||||||
migrate_gravity
|
migrate_gravity
|
||||||
|
|
||||||
echo " [i] pihole-FTL pre-start checks"
|
echo " [i] pihole-FTL pre-start checks"
|
||||||
# Remove possible leftovers from previous pihole-FTL processes
|
# Run the post stop script to cleanup any remaining artifacts from a previous run
|
||||||
rm -f /dev/shm/FTL-* 2>/dev/null
|
sh /opt/pihole/pihole-FTL-poststop.sh
|
||||||
rm -f /run/pihole/FTL.sock
|
|
||||||
|
|
||||||
fix_capabilities
|
fix_capabilities
|
||||||
sh /opt/pihole/pihole-FTL-prestart.sh
|
sh /opt/pihole/pihole-FTL-prestart.sh
|
||||||
@@ -135,6 +134,8 @@ stop() {
|
|||||||
FTL_EXIT_CODE=1
|
FTL_EXIT_CODE=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
sh /opt/pihole/pihole-FTL-poststop.sh
|
||||||
|
|
||||||
echo ""
|
echo ""
|
||||||
echo " [i] pihole-FTL exited with status $FTL_EXIT_CODE"
|
echo " [i] pihole-FTL exited with status $FTL_EXIT_CODE"
|
||||||
echo ""
|
echo ""
|
||||||
|
|||||||
Reference in New Issue
Block a user