mirror of
https://github.com/Dvorinka/beszel.git
synced 2026-07-29 07:13:48 +00:00
update
This commit is contained in:
+2
-7
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user