Skip to content

Commit

Permalink
adjust etcd default path
Browse files Browse the repository at this point in the history
  • Loading branch information
neoaggelos committed Jun 24, 2024
1 parent 6f4a785 commit 36366fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/dbctl/dbctl.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ func init() {
if snapCommon == "" {
snapCommon = "/var/snap/k8s/common"
}
defaultStorageDir = filepath.Join(snapCommon, "var", "lib", "k8s-dqlite")
defaultStorageDir = filepath.Join(snapCommon, "var", "lib", "etcd")
}

Command.PersistentFlags().StringVar(&flagStorageDir, "storage-dir", defaultStorageDir, "k8s-dqlite state directory")
Command.PersistentFlags().StringVar(&flagStorageDir, "storage-dir", defaultStorageDir, "etcd state directory")

Command.AddCommand(memberCmd)
Command.AddCommand(snapshotCmd)
Expand Down

0 comments on commit 36366fd

Please sign in to comment.