When the container was powered on it would run the script which ran crontab "file.txt".
With Core v6 it seems to be using Alpine, /etc/cont-init.d does not exist, so I am unable to load my cron scripts. Does anyone know where I can configure init scripts in Alpine?
My current workaround is to modify the /crontabs.txt but this is not really clean way of doing it.
In my examples above I've dropped everything in root, but they could be placed anywhere so long as the script and volumes are in agreement about where everything is located.
I've just tested this on current Pihole Docker, it appends the contents of cronfile.txt to the pihole provided crontab.txt (which is the one that gets read into /etc/crontabs/root by start.sh).
The problem with tagging it on to the entrypoint with && start.sh is that is that start.sh doesn't finish until it's time for the container to shut down, so it never passes to the script.
Essentially the same reason it had to be the last entry in my example script.