diff options
| author | Ho3ein <ho3ein.sanaei@gmail.com> | 2023-04-14 04:58:03 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-14 04:58:03 +0300 |
| commit | b70ecc12b3870fe7ed77242b77369008de4b5441 (patch) | |
| tree | d93f5233a3ee0514cfece964c68d28afe30ebbac /main.go | |
| parent | 0c047cf1245411394d77c3d7880bfc7466716856 (diff) | |
| parent | 4f952963aea1c51c65cc8419abda31e2bfd8f5ea (diff) | |
Merge pull request #261 from hamid-gh98/main
Support set db and bin folder path from env
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -217,7 +217,7 @@ func main() { v2uiCmd := flag.NewFlagSet("v2-ui", flag.ExitOnError) var dbPath string - v2uiCmd.StringVar(&dbPath, "db", "/etc/v2-ui/v2-ui.db", "set v2-ui db file path") + v2uiCmd.StringVar(&dbPath, "db", fmt.Sprintf("%s/v2-ui.db", config.GetDBFolderPath()), "set v2-ui db file path") settingCmd := flag.NewFlagSet("setting", flag.ExitOnError) var port int |
