--- a/conf/configuration.go +++ b/conf/configuration.go @@ -199,9 +199,11 @@ } err = os.MkdirAll(Server.CacheFolder, os.ModePerm) if err != nil { + if os.IsExist(err) == false { _, _ = fmt.Fprintln(os.Stderr, "FATAL: Error creating cache path:", err) os.Exit(1) } + } Server.ConfigFile = viper.GetViper().ConfigFileUsed() if Server.DbPath == "" {