Skip to content

Commit

Permalink
Bug fix for restoring backups
Browse files Browse the repository at this point in the history
  • Loading branch information
pshima committed Jul 14, 2016
1 parent ff5300c commit a5f70f4
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 0.2.1
* Bug fix for restore path

## 0.2.0
* Clean up acceptance test logics by moving to config struct
* Back up ACLs
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
)

const (
version = "0.2.0"
version = "0.2.1"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions restore/restore.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ func doWork(conf *config.Config, c *consul.Consul, restorePath string) {
}

log.Print("[INFO] Checking encryption status of backup")
restore.Encrypted, err = crypt.CheckEncryption(restore.RestorePath)
restore.Encrypted, err = crypt.CheckEncryption(restore.LocalFilePath)
if err != nil {
log.Fatalf("[ERR] Unable to check file for encrpytion status: %v", err)
log.Fatalf("[ERR] Unable to check file for encryption status: %v", err)
}

if restore.Encrypted {
Expand Down

0 comments on commit a5f70f4

Please sign in to comment.