aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2017-12-22 22:24:46 +0100
committerSebastien Douheret <sebastien.douheret@iot.bzh>2017-12-22 22:24:46 +0100
commit1ecdc95d837e73509243d436fcafea0920599fbe (patch)
tree45d2219c2324a55afd25f6451a97569c3fde0377 /lib
parentf1c182ede3c4aed0d6196d05b0a64ff93372e755 (diff)
Fixed invalid default value for Sdkscripts directory.
Diffstat (limited to 'lib')
-rw-r--r--lib/xdsconfig/config.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/xdsconfig/config.go b/lib/xdsconfig/config.go
index 74ce21e..3a82b44 100644
--- a/lib/xdsconfig/config.go
+++ b/lib/xdsconfig/config.go
@@ -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,
}