diff --git a/src/s6/debian-root/etc/s6-overlay/s6-rc.d/_gravityonboot/up b/src/s6/debian-root/etc/s6-overlay/s6-rc.d/_gravityonboot/up deleted file mode 100755 index d61fc03..0000000 --- a/src/s6/debian-root/etc/s6-overlay/s6-rc.d/_gravityonboot/up +++ /dev/null @@ -1,2 +0,0 @@ -#!/command/execlineb -background { bash -e /usr/local/bin/_gravityonboot.sh } \ No newline at end of file diff --git a/src/s6/debian-root/etc/s6-overlay/s6-rc.d/_gravityonboot/dependencies.d/lighttpd b/src/s6/debian-root/etc/s6-overlay/s6-rc.d/_postFTL/dependencies.d/lighttpd similarity index 100% rename from src/s6/debian-root/etc/s6-overlay/s6-rc.d/_gravityonboot/dependencies.d/lighttpd rename to src/s6/debian-root/etc/s6-overlay/s6-rc.d/_postFTL/dependencies.d/lighttpd diff --git a/src/s6/debian-root/etc/s6-overlay/s6-rc.d/_gravityonboot/dependencies.d/pihole-FTL b/src/s6/debian-root/etc/s6-overlay/s6-rc.d/_postFTL/dependencies.d/pihole-FTL similarity index 100% rename from src/s6/debian-root/etc/s6-overlay/s6-rc.d/_gravityonboot/dependencies.d/pihole-FTL rename to src/s6/debian-root/etc/s6-overlay/s6-rc.d/_postFTL/dependencies.d/pihole-FTL diff --git a/src/s6/debian-root/etc/s6-overlay/s6-rc.d/_gravityonboot/type b/src/s6/debian-root/etc/s6-overlay/s6-rc.d/_postFTL/type similarity index 100% rename from src/s6/debian-root/etc/s6-overlay/s6-rc.d/_gravityonboot/type rename to src/s6/debian-root/etc/s6-overlay/s6-rc.d/_postFTL/type diff --git a/src/s6/debian-root/etc/s6-overlay/s6-rc.d/_postFTL/up b/src/s6/debian-root/etc/s6-overlay/s6-rc.d/_postFTL/up new file mode 100755 index 0000000..4d5d13d --- /dev/null +++ b/src/s6/debian-root/etc/s6-overlay/s6-rc.d/_postFTL/up @@ -0,0 +1,2 @@ +#!/command/execlineb +background { bash -e /usr/local/bin/_postFTL.sh } \ No newline at end of file diff --git a/src/s6/debian-root/etc/s6-overlay/s6-rc.d/_startup/dependencies b/src/s6/debian-root/etc/s6-overlay/s6-rc.d/_startup/dependencies deleted file mode 100644 index fd10531..0000000 --- a/src/s6/debian-root/etc/s6-overlay/s6-rc.d/_startup/dependencies +++ /dev/null @@ -1 +0,0 @@ -_uid-gid-changer \ No newline at end of file diff --git a/src/s6/debian-root/etc/s6-overlay/s6-rc.d/user/contents.d/_gravityonboot b/src/s6/debian-root/etc/s6-overlay/s6-rc.d/user/contents.d/_postFTL similarity index 100% rename from src/s6/debian-root/etc/s6-overlay/s6-rc.d/user/contents.d/_gravityonboot rename to src/s6/debian-root/etc/s6-overlay/s6-rc.d/user/contents.d/_postFTL diff --git a/src/s6/debian-root/usr/local/bin/_gravityonboot.sh b/src/s6/debian-root/usr/local/bin/_postFTL.sh similarity index 71% rename from src/s6/debian-root/usr/local/bin/_gravityonboot.sh rename to src/s6/debian-root/usr/local/bin/_postFTL.sh index a238bb6..b06cff5 100755 --- a/src/s6/debian-root/usr/local/bin/_gravityonboot.sh +++ b/src/s6/debian-root/usr/local/bin/_postFTL.sh @@ -1,4 +1,5 @@ #!/bin/bash +# This script contains function calls and lines that may rely on pihole-FTL to be running, it is run as part of a oneshot service on container startup if [ "${PH_VERBOSE:-0}" -gt 0 ] ; then set -x ; @@ -20,4 +21,13 @@ if [ -z "$SKIPGRAVITYONBOOT" ] || [ ! -f "${gravityDBfile}" ]; then pihole -g else echo " Skipping Gravity Database Update." -fi \ No newline at end of file +fi + +# Run update checker to check for newer container, and display version output +echo "" +pihole updatechecker +pihole -v + +DOCKER_TAG=$(cat /pihole.docker.tag) +echo " Container tag is: ${DOCKER_TAG}" +echo "" \ No newline at end of file diff --git a/src/s6/debian-root/usr/local/bin/_startup.sh b/src/s6/debian-root/usr/local/bin/_startup.sh index a133b3c..4f27f24 100755 --- a/src/s6/debian-root/usr/local/bin/_startup.sh +++ b/src/s6/debian-root/usr/local/bin/_startup.sh @@ -69,9 +69,6 @@ test_configs echo " [i] Docker start setup complete" echo "" -pihole -v -echo " Container tag is: ${PIHOLE_DOCKER_TAG}" -echo "" echo " [i] pihole-FTL ($FTL_CMD) will be started as ${DNSMASQ_USER}" echo "" diff --git a/src/s6/debian-root/usr/local/bin/bash_functions.sh b/src/s6/debian-root/usr/local/bin/bash_functions.sh index 69d7838..85ff87e 100644 --- a/src/s6/debian-root/usr/local/bin/bash_functions.sh +++ b/src/s6/debian-root/usr/local/bin/bash_functions.sh @@ -100,9 +100,6 @@ ensure_basic_configuration() { chown pihole:root "${PI_HOLE_BIN_DIR}/pihole" set -e - # Update version numbers - pihole updatechecker - pihole updatechecker remote # Re-write all of the setupVars to ensure required ones are present (like QUERY_LOGGING) # If the setup variable file exists,