Skip to content

Commit 0c1fdcf

Browse files
committed
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
1 parent 27fc8ac commit 0c1fdcf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/start.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,8 @@ start() {
5252
migrate_gravity
5353

5454
echo " [i] pihole-FTL pre-start checks"
55-
# Remove possible leftovers from previous pihole-FTL processes
56-
rm -f /dev/shm/FTL-* 2>/dev/null
57-
rm -f /run/pihole/FTL.sock
55+
# Run the post stop script to cleanup any remaining artifacts from a previous run
56+
sh /opt/pihole/pihole-FTL-poststop.sh
5857

5958
fix_capabilities
6059
sh /opt/pihole/pihole-FTL-prestart.sh
@@ -135,6 +134,8 @@ stop() {
135134
FTL_EXIT_CODE=1
136135
fi
137136

137+
sh /opt/pihole/pihole-FTL-poststop.sh
138+
138139
echo ""
139140
echo " [i] pihole-FTL exited with status $FTL_EXIT_CODE"
140141
echo ""

0 commit comments

Comments
 (0)