|
@@ -1,12 +1,8 @@
|
|
package upgrades
|
|
package upgrades
|
|
|
|
|
|
import (
|
|
import (
|
|
- "os"
|
|
|
|
- "runtime"
|
|
|
|
-
|
|
|
|
"github.com/gravitl/netmaker/logger"
|
|
"github.com/gravitl/netmaker/logger"
|
|
"github.com/gravitl/netmaker/netclient/config"
|
|
"github.com/gravitl/netmaker/netclient/config"
|
|
- "github.com/gravitl/netmaker/netclient/ncutils"
|
|
|
|
)
|
|
)
|
|
|
|
|
|
var upgrade0147 = UpgradeInfo{
|
|
var upgrade0147 = UpgradeInfo{
|
|
@@ -26,16 +22,18 @@ var upgrade0147 = UpgradeInfo{
|
|
func update0147(cfg *config.ClientConfig) {
|
|
func update0147(cfg *config.ClientConfig) {
|
|
//do stuff for 14.X -> 14.6
|
|
//do stuff for 14.X -> 14.6
|
|
// No-op
|
|
// 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")
|
|
|
|
- }
|
|
|
|
|
|
+ /*
|
|
|
|
+ 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")
|
|
logger.Log(0, "updating schema for v0.14.7")
|
|
}
|
|
}
|