mirror of
https://github.com/pi-hole/FTL.git
synced 2025-12-19 21:28: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
|
||||
full_key = ".".join(section_stack + [key])
|
||||
env_var = "FTLCONF_" + "_".join(section_stack + [key])
|
||||
env_var = "FTLCONF_" + full_key.replace(".", "_")
|
||||
|
||||
# TOML example tab
|
||||
documentation.append(f'=== "TOML"')
|
||||
|
||||
Reference in New Issue
Block a user