mirror of
https://github.com/chatmail/relay.git
synced 2026-05-19 20:38:05 +00:00
put index.html into www/ dir, as it's not config
This commit is contained in:
@@ -382,8 +382,9 @@ def deploy_chatmail(mail_domain: str, mail_server: str, dkim_selector: str) -> N
|
|||||||
if www_path.is_dir():
|
if www_path.is_dir():
|
||||||
files.rsync(f"{www_path}/", "/var/www/html", flags=["-avz"])
|
files.rsync(f"{www_path}/", "/var/www/html", flags=["-avz"])
|
||||||
else:
|
else:
|
||||||
|
index_path = www_path.parent.joinpath("default/index.html.j2")
|
||||||
files.template(
|
files.template(
|
||||||
src=importlib.resources.files(__package__).joinpath("nginx/index.html.j2"),
|
src=index_path,
|
||||||
dest="/var/www/html/index.html",
|
dest="/var/www/html/index.html",
|
||||||
user="root",
|
user="root",
|
||||||
group="root",
|
group="root",
|
||||||
|
|||||||
Reference in New Issue
Block a user