mirror of
https://github.com/pi-hole/FTL.git
synced 2025-12-19 22:58:24 +00:00
Replace dots with underscores when creating env var examples
Signed-off-by: RD WebDesign <github@rdwebdesign.com.br>
This commit is contained in:
@@ -156,7 +156,7 @@ sudo pihole-FTL --config dns.dnssec=true
|
|||||||
|
|
||||||
# Compose full key for CLI/env var examples
|
# Compose full key for CLI/env var examples
|
||||||
full_key = ".".join(section_stack + [key])
|
full_key = ".".join(section_stack + [key])
|
||||||
env_var = "FTLCONF_" + "_".join(section_stack + [key])
|
env_var = "FTLCONF_" + full_key.replace(".", "_")
|
||||||
|
|
||||||
# TOML example tab
|
# TOML example tab
|
||||||
documentation.append(f'=== "TOML"')
|
documentation.append(f'=== "TOML"')
|
||||||
|
|||||||
Reference in New Issue
Block a user