This commit is contained in:
Tomas Dvorak
2026-04-29 11:32:39 +02:00
parent 193839bd27
commit 67254f89a9
20 changed files with 1792 additions and 1094 deletions
+2 -7
View File
@@ -267,13 +267,8 @@ func (h *Hub) bindDomainHooks() {
return e.Next()
})
// On update - refresh if activated
h.OnRecordAfterUpdateSuccess("domains").BindFunc(func(e *core.RecordEvent) error {
if e.Record.GetBool("active") {
h.domainSched.RefreshDomain(e.Record.Id)
}
return e.Next()
})
// Manual refresh and resume actions trigger lookups explicitly. Avoid
// refreshing on every domain save because scheduler writes would loop.
}
// GetSSHKey generates key pair if it doesn't exist and returns signer