Skip to content

Commit

Permalink
Merge pull request #23 from numary/fix/ui-open
Browse files Browse the repository at this point in the history
Fix ui open on linux server distributions
  • Loading branch information
altitude authored Jul 22, 2021
2 parents 2635c32 + 3265f68 commit 5c7750c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions cmd/ui.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package cmd
import (
"embed"
"fmt"
"log"
"net/http"
"os/exec"
"regexp"
Expand All @@ -15,7 +14,7 @@ import (
//go:embed control
var uipath embed.FS

func openuri(uri string) {
func openuri(uri string) bool {
var err error

switch runtime.GOOS {
Expand All @@ -29,9 +28,7 @@ func openuri(uri string) {
err = fmt.Errorf("unsupported platform, open manually: %s", uri)
}

if err != nil {
log.Fatal(err)
}
return err != nil
}

var UICmd = &cobra.Command{
Expand Down
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func Init() {
viper.SetDefault("storage.sqlite.db_name", "numary")
viper.SetDefault("storage.postgres.conn_string", "postgresql://localhost/postgres")
viper.SetDefault("server.http.bind_address", "localhost:3068")
viper.SetDefault("ledgers", []string{"quickstart"})
viper.SetDefault("ledgers", []interface{}{"quickstart"})

viper.SetConfigName("numary")
viper.SetConfigType("yaml")
Expand Down

0 comments on commit 5c7750c

Please sign in to comment.