Browse Source

Исправить подставновку имени сервера в шаблоне

master
Дмитрий 3 years ago
parent
commit
345daed9a4
  1. 4
      solution.py

4
solution.py

@ -13,7 +13,9 @@ async def write_config_file(
with open(path_to_template_file, "r") as file:
template = file.read()
config_body: str = template.replace("server_name _;", f"server_name {server_name};")
config_body: str = template.replace(
"server_name _;", f"server_name {server_name}.server.com;"
)
condifg_full_path: str = os.path.abspath(path_for_config)
config_filename: str = f"{server_name}.conf"

Loading…
Cancel
Save