v0-14-7.go 895 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. package upgrades
  2. import (
  3. "github.com/gravitl/netmaker/logger"
  4. "github.com/gravitl/netmaker/netclient/config"
  5. )
  6. var upgrade0147 = UpgradeInfo{
  7. RequiredVersions: []string{
  8. "v0.14.0",
  9. "v0.14.1",
  10. "v0.14.2",
  11. "v0.14.3",
  12. "v0.14.4",
  13. "v0.14.5",
  14. "v0.14.6",
  15. },
  16. NewVersion: "v0.14.7",
  17. OP: update0147,
  18. }
  19. func update0147(cfg *config.ClientConfig) {
  20. //do stuff for 14.X -> 14.6
  21. // No-op
  22. /*
  23. if runtime.GOARCH == "darwin" {
  24. oldLocation := "/Applications/Netclient"
  25. newLocation := ncutils.MAC_APP_DATA_PATH
  26. err := os.Rename(oldLocation, newLocation)
  27. if err != nil {
  28. logger.FatalLog("There was an issue moving the Netclient file from Applications to Application Support:", err.Error())
  29. } else {
  30. logger.Log(0, "The Netclient data file has been moved from Applications to Application Support")
  31. }
  32. }
  33. */
  34. logger.Log(0, "updating schema for v0.14.7")
  35. }