fix: fix log message

This commit is contained in:
Jonas Kaninda
2024-10-13 14:31:28 +02:00
parent 5a74e3f904
commit 35bfefafad
3 changed files with 18 additions and 8 deletions

View File

@@ -96,13 +96,12 @@ func RestoreDatabase(db *dbConfig, conf *RestoreConfig) {
utils.Fatal("Your file seems to be a GPG file.\nYou need to provide GPG keys. GPG_PASSPHRASE or GPG_PRIVATE_KEY environment variable is required.")
} else {
utils.Info("Decrypting backup using passphrase...")
//decryptWithGPG file
err := encryptor.Decrypt(rFile, outputFile, conf.passphrase)
if err != nil {
utils.Fatal("Error decrypting file %s %v", file, err)
}
utils.Info("Decrypting backup using private key...done")
utils.Info("Decrypting backup using passphrase...done")
//Update file name
conf.file = RemoveLastExtension(file)
}