clean config dir

Fixes #80
This commit is contained in:
Nicola Murino
2020-03-02 22:56:14 +01:00
parent ed11e1128a
commit df67f4ef34
4 changed files with 8 additions and 4 deletions

View File

@@ -1,6 +1,8 @@
package cmd
import (
"path/filepath"
"github.com/drakkan/sftpgo/service"
"github.com/spf13/cobra"
)
@@ -16,7 +18,7 @@ sftpgo serve
Please take a look at the usage below to customize the startup options`,
Run: func(cmd *cobra.Command, args []string) {
service := service.Service{
ConfigDir: configDir,
ConfigDir: filepath.Clean(configDir),
ConfigFile: configFile,
LogFilePath: logFilePath,
LogMaxSize: logMaxSize,