Preserve installed release metadata and receiver assignments
This commit is contained in:
1 parent
8f5f9ef510
commit
09672ef18e
4 files changed
+44
-12
No files matched your search
@@ -206,6 +206,19 @@ def check_destination(settings):
|
||||
raise InstallError("Choose a dedicated mail or DNS receiver.")
|
||||
if "mail" in settings["roles"] and settings["tls"] == "provided":
|
||||
certificate(settings, "mail")
|
||||
for role in settings["roles"]:
|
||||
unit = engine.SYSTEMD / f"coulobre-{role}-apply@.service"
|
||||
state_file = NODE_STATE / f"{role}.json"
|
||||
if unit.is_file() and (
|
||||
not state_file.is_file()
|
||||
or json.loads(state_file.read_text())["complete"]
|
||||
):
|
||||
engine.run(
|
||||
engine.BINDIR / "coulobre-node-setup",
|
||||
"check-receiver",
|
||||
role,
|
||||
label=f"Check the existing {role} service",
|
||||
)
|
||||
else:
|
||||
standalone_plan(settings)
|
||||
if (
|
||||
@@ -279,6 +292,7 @@ def install_on_node(settings):
|
||||
settings["scope"],
|
||||
key,
|
||||
*settings["domains"],
|
||||
"--keep-domains",
|
||||
)
|
||||
else:
|
||||
command = ("authorize-panel", name, key)
|
||||
|
||||
Reference in new issue
Block a user