Browse Source

removing upgrade function

afeiszli 3 years ago
parent
commit
513609859b
2 changed files with 2 additions and 40 deletions
  1. 2 1
      netclient/functions/upgrades/upgrades.go
  2. 0 39
      netclient/functions/upgrades/v0-15-0.go

+ 2 - 1
netclient/functions/upgrades/upgrades.go

@@ -2,7 +2,8 @@ package upgrades
 
 func init() {
 	addUpgrades([]UpgradeInfo{
-		upgrade0147,
+		upgrade0145,
+		upgrade0146,
 	})
 }
 

+ 0 - 39
netclient/functions/upgrades/v0-15-0.go

@@ -1,39 +0,0 @@
-package upgrades
-
-import (
-	"github.com/gravitl/netmaker/logger"
-	"github.com/gravitl/netmaker/netclient/config"
-)
-
-var upgrade015 = UpgradeInfo{
-	RequiredVersions: []string{
-		"v0.14.0",
-		"v0.14.1",
-		"v0.14.2",
-		"v0.14.3",
-		"v0.14.4",
-		"v0.14.5",
-		"v0.14.6",
-	},
-	NewVersion: "v0.15.0",
-	OP:         update015,
-}
-
-func update015(cfg *config.ClientConfig) {
-	//do stuff for 14.X -> 14.6
-	// No-op
-	/*
-		if runtime.GOARCH == "darwin" {
-			oldLocation := "/Applications/Netclient"
-			newLocation := ncutils.MAC_APP_DATA_PATH
-			err := os.Rename(oldLocation, newLocation)
-			if err != nil {
-				logger.FatalLog("There was an issue moving the Netclient file from Applications to Application Support:", err.Error())
-			} else {
-				logger.Log(0, "The Netclient data file has been moved from Applications to Application Support")
-			}
-
-		}
-	*/
-	logger.Log(0, "updating schema for v0.14.7")
-}