1
0
mirror of https://github.com/pi-hole/docker-pi-hole.git synced 2024-06-28 20:20:57 +02:00
Commit Graph

19 Commits

Author SHA1 Message Date
Adam Warner
76e09bf15a
Give users an option to silence the FTL log output by passing in the environment variable TAIL_FTL_LOG with a value of 0. Defaults to enabled (1)
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-09-03 13:02:50 +01:00
Adam Warner
374f6f2537
Add in a test to kill start.sh and then ensure that pihole-FTL is gracefully exited.
We add in some sleeps to ensure that the log file is being written to before we check it
Log entry tests are based on many different passes of running this locally with all sorts of timeouts and sleeps, this seems to be the most consistent

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-08-09 23:31:39 +01:00
Adam Warner
696895fa59
Fix some broken logic in the gravity skip code (I should have read it better)
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-08-09 22:15:41 +01:00
Adam Warner
94795db7e9
correct tini path
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-08-09 21:38:49 +01:00
Adam Warner
b674a8bde7
Who needs an init system anyway? Add a trap to ensure that pihole-FTL shuts down cleanly on container exit.
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-08-09 21:20:11 +01:00
Adam Warner
0748c7fc62
Update src/start.sh
Signed-off-by: Adam Warner <github@adamwarner.co.uk>
2023-08-09 19:46:48 +01:00
edgd1er
7cf55cb722
if skipgravityonboot set, check db version
Signed-off-by: edgd1er <edgd1er@hotmail.com>
2023-07-27 03:24:55 +02:00
edgd1er
a2770a3f18
uid/gid: add info when already as expected
Signed-off-by: edgd1er <edgd1er@hotmail.com>
2023-07-26 22:50:10 +02:00
edgd1er
2a8fa77adc
extracted functions need to be rewritten to remove the return
Signed-off-by: edgd1er <edgd1er@hotmail.com>
2023-07-26 22:11:51 +02:00
Adam Warner
62dd8d503c
Allow the for changing of the UID/GID of the user/group pihole
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-07-26 08:25:08 +01:00
Adam Warner
348e27b45f
Merge pull request #1368 from pi-hole/reimplement-skip-gravity
Re-implement SKIPGRAVITYONBOOT
2023-07-17 17:37:23 +01:00
Adam Warner
11b6b8bd34
Remove some dependencies, move nano & less to the start script and only intall if env var INSTALL_DEV_TOOLS > 0
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-07-11 19:15:52 +01:00
Adam Warner
5d33fdadd3
reimplement allowing user to skip gravity on boot with the environment variable SKIPGRAVITYONBOOT (as with v5)
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-07-11 19:15:37 +01:00
Adam Warner
5435c9d6c1
Start FTL after running gravity completely. Else we end up in a situation where the database getss stuck in readonly
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-07-09 17:09:32 +01:00
Adam Warner
d415bffcb7
Create our own cron file rather than copying the one from the core repo (which contains non-standard cron syntax)
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-07-03 22:54:49 +01:00
Adam Warner
a5c8e6d873
Run pihole update checked on container start
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-06-29 17:24:56 +01:00
Adam Warner
45c636eb25
Use pihole-FTL prestart script from core repo to avoid code duplication. Change the order of startup objects a little.
look at starting crond on startup

Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-06-21 19:18:12 +01:00
Adam Warner
171c8108f9
Remove the s6 directory to prevent confusion. I will try to remember where I was with the previous commit.
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-06-09 18:53:42 +01:00
Adam Warner
d7a25836ad
checkpoint
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
2023-02-15 23:48:53 +00:00