[WIP] Add restart command to instance

This commit is contained in:
Vladimir Stoilov
2024-09-26 13:51:42 +03:00
parent c9631daa3e
commit 61babe2822
15 changed files with 81 additions and 98 deletions

View File

@@ -1,7 +1,6 @@
package captain
import (
"github.com/safing/portmaster/service/updates"
"github.com/safing/portmaster/spn/conf"
"github.com/safing/portmaster/spn/docks"
)
@@ -41,5 +40,7 @@ func updateConnectionStatus() {
return
}
}
updates.TriggerRestartIfPending()
// TODO(vladimir): what was this needed for?
// updates.TriggerRestartIfPending()
}

View File

@@ -44,7 +44,7 @@ func updateSPNIntel(_ context.Context, _ interface{}) (err error) {
// Check if there is something to do.
// TODO(vladimir): is update check needed
if intelResource != nil { //&& !intelResource.UpgradeAvailable() {
if intelResource != nil { // && !intelResource.UpgradeAvailable() {
return nil
}