Added a "-conf_dir" option to customize *.toml configuration file directory.

fix https://github.com/chrislusf/seaweedfs/issues/2753
This commit is contained in:
chrislu
2022-03-19 00:22:47 -07:00
parent 2824940ecf
commit 3da2b83b38
2 changed files with 23 additions and 5 deletions

View File

@@ -4,6 +4,7 @@ import (
"embed"
"fmt"
weed_server "github.com/chrislusf/seaweedfs/weed/server"
"github.com/chrislusf/seaweedfs/weed/util"
flag "github.com/chrislusf/seaweedfs/weed/util/fla9"
"io"
"io/fs"
@@ -40,6 +41,8 @@ var static embed.FS
func init() {
weed_server.StaticFS, _ = fs.Sub(static, "static")
flag.Var(&util.ConfigurationFileDirectory, "conf_dir", "directory with toml configuration files")
}
func main() {