package main 

import (
	ess "github.com/eris-ltd/erisdb/erisdb/erisdbss"
	"github.com/eris-ltd/erisdb/server"
	"os"
	"github.com/gin-gonic/gin"
	"path"
)

func main() {
	gin.SetMode(gin.ReleaseMode)

	baseDir := path.Join(os.TempDir(), "/.edbservers")
	ss := ess.NewServerServer(baseDir)
	proc := server.NewServeProcess(nil, ss)
	err := proc.Start()
	if err != nil {
		panic(err.Error())
	}
	<- proc.StopEventChannel()
	os.RemoveAll(baseDir)
}
package main 

import (
	ess "github.com/eris-ltd/erisdb/erisdb/erisdbss"
	"github.com/eris-ltd/erisdb/server"
	"os"
	"github.com/gin-gonic/gin"
)

func main() {
	gin.SetMode(gin.ReleaseMode)

	baseDir := os.Getenv("HOME") + "/.edbservers"
	ss := ess.NewServerServer(baseDir)
	proc := server.NewServeProcess(nil, ss)
	err := proc.Start()
	if err != nil {
		panic(err.Error())
	}
	<- proc.StopEventChannel()
	os.RemoveAll(baseDir)
}
--- 
+++ 
@@ -5,12 +5,13 @@
 	"github.com/eris-ltd/erisdb/server"
 	"os"
 	"github.com/gin-gonic/gin"
+	"path"
 )
 
 func main() {
 	gin.SetMode(gin.ReleaseMode)
 
-	baseDir := os.Getenv("HOME") + "/.edbservers"
+	baseDir := path.Join(os.TempDir(), "/.edbservers")
 	ss := ess.NewServerServer(baseDir)
 	proc := server.NewServeProcess(nil, ss)
 	err := proc.Start()
Change serverserver to use os temp dir as base
