File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 1616package server
1717
1818import (
19+ "errors"
1920 "os"
2021 "os/signal"
2122 "syscall"
@@ -41,6 +42,12 @@ func Command() *cobra.Command {
4142./visus start --bindAddr "127.0.0.1:15432" ` ,
4243 RunE : func (cmd * cobra.Command , _ []string ) error {
4344 ctx := cmd .Context ()
45+ if (cfg .BindCert == "" || cfg .BindKey == "" ) && ! cfg .Insecure {
46+ return errors .New ("--insecure must be specfied if certificates and private key are missing" )
47+ }
48+ if cfg .URL == "" {
49+ return errors .New ("--url must be specified" )
50+ }
4451 conn , err := database .DefaultFactory .New (ctx , cfg .URL )
4552 if err != nil {
4653 return err
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ GRANT CONNECT ON DATABASE _visus to visus;
66
77USE _visus;
88
9- ALTER DEFAULT PRIVILEGES GRANT SELECT ON TABLES TO visus_monitor ;
9+ ALTER DEFAULT PRIVILEGES GRANT SELECT ON TABLES TO visus ;
1010
1111CREATE TYPE IF NOT EXISTS _visus .scope AS ENUM (' node' , ' cluster' );
1212
You can’t perform that action at this time.
0 commit comments