put index.html into www/ dir, as it's not config

This commit is contained in:
holger krekel
2023-12-04 14:16:09 +01:00
parent 4708533a0d
commit bf8b69ae68
2 changed files with 2 additions and 1 deletions

View File

@@ -382,8 +382,9 @@ def deploy_chatmail(mail_domain: str, mail_server: str, dkim_selector: str) -> N
if www_path.is_dir():
files.rsync(f"{www_path}/", "/var/www/html", flags=["-avz"])
else:
index_path = www_path.parent.joinpath("default/index.html.j2")
files.template(
src=importlib.resources.files(__package__).joinpath("nginx/index.html.j2"),
src=index_path,
dest="/var/www/html/index.html",
user="root",
group="root",