Fixed invalid default value for Sdkscripts directory.
authorSebastien Douheret <sebastien.douheret@iot.bzh>
Fri, 22 Dec 2017 21:24:46 +0000 (22:24 +0100)
committerSebastien Douheret <sebastien.douheret@iot.bzh>
Fri, 22 Dec 2017 21:24:46 +0000 (22:24 +0100)
conf.d/etc/xds/server/server-config.json
lib/xdsconfig/config.go

index a27d4f5..47b75ef 100644 (file)
@@ -2,7 +2,7 @@
     "webAppDir": "www",
     "httpPort": "8000",
     "shareRootDir": "${HOME}/.xds/server/projects",
-    "sdkScriptsDir": "${EXEPATH}/scripts/sdks",
+    "sdkScriptsDir": "${EXEPATH}/sdks",
     "syncthing": {
         "binDir": "",
         "home": "${HOME}/.xds/server/syncthing-config",
index 74ce21e..3a82b44 100644 (file)
@@ -51,11 +51,11 @@ type Options struct {
 
 // Config default values
 const (
-       DefaultAPIVersion = "1"
-       DefaultPort       = "8000"
-       DefaultShareDir   = "${HOME}/.xds/server/projects"
-       DefaultSTHomeDir  = "${HOME}/.xds/server/syncthing-config"
-       DefaultSdkScriptsDir = "${EXEPATH}/scripts/sdks"
+       DefaultAPIVersion    = "1"
+       DefaultPort          = "8000"
+       DefaultShareDir      = "${HOME}/.xds/server/projects"
+       DefaultSTHomeDir     = "${HOME}/.xds/server/syncthing-config"
+       DefaultSdkScriptsDir = "${EXEPATH}/sdks"
 )
 
 // Init loads the configuration on start-up
@@ -95,12 +95,12 @@ func Init(cliCtx *cli.Context, log *logrus.Logger) (*Config, error) {
                        NoFolderConfig: cliCtx.GlobalBool("no-folderconfig"),
                },
                FileConf: FileConfig{
-                       WebAppDir:    "webapp/dist",
-                       ShareRootDir: dfltShareDir,
+                       WebAppDir:     "webapp/dist",
+                       ShareRootDir:  dfltShareDir,
                        SdkScriptsDir: DefaultSdkScriptsDir,
-                       HTTPPort:     DefaultPort,
-                       SThgConf:     &SyncThingConf{Home: dfltSTHomeDir},
-                       LogsDir:      "",
+                       HTTPPort:      DefaultPort,
+                       SThgConf:      &SyncThingConf{Home: dfltSTHomeDir},
+                       LogsDir:       "",
                },
                Log: log,
        }