refactor(socket mount): Update socket mount pattern to `/tmp/seaweedf… (#3662)

This commit is contained in:
Ryan Russell
2022-09-14 11:14:44 -05:00
committed by GitHub
parent b6a1b84a00
commit 19652c1b83
3 changed files with 3 additions and 3 deletions

View File

@@ -295,7 +295,7 @@ func (fo *FilerOptions) startFiler() {
if runtime.GOOS != "windows" {
localSocket := *fo.localSocket
if localSocket == "" {
localSocket = fmt.Sprintf("/tmp/seaweefs-filer-%d.sock", *fo.port)
localSocket = fmt.Sprintf("/tmp/seaweedfs-filer-%d.sock", *fo.port)
}
if err := os.Remove(localSocket); err != nil && !os.IsNotExist(err) {
glog.Fatalf("Failed to remove %s, error: %s", localSocket, err.Error())