Remove the RepoISO integration; keep generic support for shares of other services
build / build (push) Successful in 1m5s
build / build (push) Successful in 1m5s
RepoISO now manages the NAS itself, so nasmon no longer polls it (settings field, dashboard card, menu link and repoiso:* alerts are gone). Drop-in SMB includes, read-only listing and keeping smbd/nfs-server running for other software's shares stay. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -54,7 +54,6 @@ type Status struct {
|
||||
NextSmartCheck time.Time `json:"next_smart_check"`
|
||||
SmartRunning bool `json:"smart_running"`
|
||||
LastMailErr string `json:"last_mail_err,omitempty"`
|
||||
RepoISO *collect.RepoISO `json:"repoiso,omitempty"`
|
||||
}
|
||||
|
||||
type Scheduler struct {
|
||||
@@ -244,11 +243,6 @@ func (s *Scheduler) collectStorage() {
|
||||
root, _ := collect.ReadFS("/")
|
||||
alerts, _ := s.st.ActiveAlerts()
|
||||
services := collect.ReadShareServices()
|
||||
var repoiso *collect.RepoISO
|
||||
if url := s.cfg.Get().Integrations.RepoISOURL; url != "" {
|
||||
r := collect.FetchRepoISO(url)
|
||||
repoiso = &r
|
||||
}
|
||||
|
||||
s.mu.Lock()
|
||||
defer s.mu.Unlock()
|
||||
@@ -270,7 +264,6 @@ func (s *Scheduler) collectStorage() {
|
||||
s.status.RootFS = root
|
||||
s.status.Alerts = alerts
|
||||
s.status.Services = services
|
||||
s.status.RepoISO = repoiso
|
||||
}
|
||||
|
||||
// buildViews merges lsblk disks with cached SMART data; caller holds s.mu.
|
||||
@@ -426,8 +419,7 @@ func (s *Scheduler) evaluate() {
|
||||
Disks: nil, Pools: st.Pools, PoolsOK: st.PoolsErr == "",
|
||||
CPUTemp: st.CPUTemp, HasCPU: st.HasCPUTemp,
|
||||
RootFS: st.RootFS, RootOK: st.RootFS.Total > 0,
|
||||
Prev: map[string]*collect.Smart{},
|
||||
RepoISO: st.RepoISO,
|
||||
Prev: map[string]*collect.Smart{},
|
||||
}
|
||||
for _, v := range st.Disks {
|
||||
in.Disks = append(in.Disks, v.Disk)
|
||||
|
||||
Reference in New Issue
Block a user