This is an automated email from the ASF dual-hosted git repository.

linkinstar pushed a commit to branch apache
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git

commit 3d411813659eb993ab81e619fd447b8d4b08e3a5
Author: LinkinStars <[email protected]>
AuthorDate: Tue Aug 6 17:14:22 2024 +0800

    feat(init): skip init if config file exist
---
 cmd/command.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/cmd/command.go b/cmd/command.go
index 03194dc3..65bca37d 100644
--- a/cmd/command.go
+++ b/cmd/command.go
@@ -120,6 +120,9 @@ To run answer, use:
                                        fmt.Println("connect to database 
successfully and table already exists, do nothing.")
                                        return
                                }
+                               if len(os.Getenv("SKIP_INIT")) > 0 {
+                                       return
+                               }
                        }
 
                        // start installation server to install

Reply via email to