diff --git a/README.md b/README.md index e27a2c5..f834f60 100644 --- a/README.md +++ b/README.md @@ -121,6 +121,7 @@ There are other environment variables if you want to customize various things in | `DNSMASQ_USER: `
*Experimental Default: root* | Allows running FTLDNS as non-root. | `TEMPERATUREUNIT`:
*Optional Default: c* | Set preferred temperature unit to `c`: Celsius, `k`: Kelvin, or `f` Fahrenheit units. | `WEBUIBOXEDLAYOUT: `
*Optional Default: boxed* | Use boxed layout (helpful when working on large screens) +| `SKIPGRAVITYONBOOT`:
*Optional Default: Not Set* | Use this option to skip updating the Gravity Database when booting up the container. By default this environment variable is not set so the Gravity Database will be updated when the container starts up. Setting this environment variable to 1 (or anything) will cause the Gravity Database to not be updated when container starts up. To use these env vars in docker run format style them like: `-e DNS1=1.1.1.1` diff --git a/s6/debian-root/etc/cont-init.d/20-start.sh b/s6/debian-root/etc/cont-init.d/20-start.sh index 10d58f7..5c92d59 100644 --- a/s6/debian-root/etc/cont-init.d/20-start.sh +++ b/s6/debian-root/etc/cont-init.d/20-start.sh @@ -14,7 +14,11 @@ $bashCmd /start.sh if [ -n "$PYTEST" ]; then sed -i 's/^gravity_spinup$/#gravity_spinup # DISABLED FOR PYTEST/g' "$(which gravity.sh)" fi -gravity.sh +if [ -z "$SKIPGRAVITYONBOOT" ]; then + gravity.sh +else + echo " Skipping Gravity Database Update." +fi # Kill dnsmasq because s6 won't like it if it's running when s6 services start kill -9 $(pgrep pihole-FTL) || true