diff --git a/README.md b/README.md index 9ed7270..be83bf1 100644 --- a/README.md +++ b/README.md @@ -89,7 +89,6 @@ To explicitly set no password, set `FTLCONF_webserver_api_password: ''` | Variable | Default | Value | Description | | -------- | ------- | ----- | ---------- | | `TAIL_FTL_LOG` | unset | `` | Whether or not to output the FTL log when running the. Useful for debugging/watching what FTL is doing. -| `SKIPGRAVITYONBOOT` | unset | `` | 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. | `FTLCONF_[SETTING]` | unset | As per documentation | Customize pihole.toml with settings described in the . Replace `.` with `_`, e.g for `dns.dnssec=true` use `FTLCONF_dns_dnssec: 'true'`
Array type configs should be delimited with `;`| | `PIHOLE_UID` | `100` | Number | Overrides image's default pihole user id to match a host user id
**IMPORTANT**: id must not already be in use inside the container! | | `PIHOLE_GID` | `101` | Number | Overrides image's default pihole group id to match a host group id
**IMPORTANT**: id must not already be in use inside the container!| diff --git a/src/start.sh b/src/start.sh index 66a0792..89d2635 100644 --- a/src/start.sh +++ b/src/start.sh @@ -83,23 +83,14 @@ start() { gravityDBfile=$(getFTLConfigValue files.gravity) if [ ! -f "${gravityDBfile}" ]; then - if [ -n "${SKIPGRAVITYONBOOT}" ]; then - echo " SKIPGRAVITYONBOOT is set, however ${gravityDBfile} does not exist (Likely due to a fresh volume). This is a required file for Pi-hole to operate." - echo " Ignoring SKIPGRAVITYONBOOT on this occasion." - unset SKIPGRAVITYONBOOT - fi + echo " [i] ${gravityDBfile} does not exist (Likely due to a fresh volume). This is a required file for Pi-hole to operate." + pihole -g else # TODO: Revisit this path if we move to a multistage build source /etc/.pihole/advanced/Scripts/database_migration/gravity-db.sh upgrade_gravityDB "${gravityDBfile}" "/etc/pihole" fi - if [ -n "${SKIPGRAVITYONBOOT}" ]; then - echo " [i] Skipping Gravity Database Update." - else - pihole -g - fi - pihole updatechecker echo " [i] Docker start setup complete"