Skip to content

Commit

Permalink
Fix upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
majst01 committed Aug 24, 2023
1 parent bc3aac8 commit f90e1d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/internal/database/meilisearch/meilisearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func (db *Meilisearch) Upgrade() error {
db.log.Infow("start upgrade", "from", dbVersion, "to", meilisearchVersion)

// meilisearch --import-dump /dumps/20200813-042312213.dump
cmd := exec.Command(meilisearchCmd, "--import-dump", " --ignore-dump-if-db-exists", path.Join(db.dumpdir, latestStableDump)) // nolint:gosec
cmd := exec.Command(meilisearchCmd, "--import-dump", "--ignore-dump-if-db-exists", path.Join(db.dumpdir, latestStableDump)) // nolint:gosec
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
err = cmd.Run()
Expand Down
2 changes: 1 addition & 1 deletion deploy/meilisearch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spec:
- sh
- -x
- -c
- backup-restore-sidecar wait --log-level debug && cd /meili_data && meilisearch
- backup-restore-sidecar wait --log-level debug && meilisearch
livenessProbe:
failureThreshold: 3
httpGet:
Expand Down

0 comments on commit f90e1d0

Please sign in to comment.