Skip to content

Commit

Permalink
Special characters in password do not break GPG test case
Browse files Browse the repository at this point in the history
  • Loading branch information
m90 committed Oct 17, 2022
1 parent 5c7856f commit 3925ac1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/gpg/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
BACKUP_FILENAME: test.tar.gz
BACKUP_LATEST_SYMLINK: test-latest.tar.gz.gpg
BACKUP_RETENTION_DAYS: ${BACKUP_RETENTION_DAYS:-7}
GPG_PASSPHRASE: 1234secret
GPG_PASSPHRASE: 1234#$$ecret
volumes:
- ./local:/archive
- app_data:/backup/app_data:ro
Expand Down
2 changes: 1 addition & 1 deletion test/gpg/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ expect_running_containers "2"

tmp_dir=$(mktemp -d)

echo 1234secret | gpg -d --pinentry-mode loopback --yes --passphrase-fd 0 ./local/test.tar.gz.gpg > ./local/decrypted.tar.gz
echo "1234#\$ecret" | gpg -d --pinentry-mode loopback --yes --passphrase-fd 0 ./local/test.tar.gz.gpg > ./local/decrypted.tar.gz
tar -xf ./local/decrypted.tar.gz -C $tmp_dir
ls -lah $tmp_dir
if [ ! -f $tmp_dir/backup/app_data/offen.db ]; then
Expand Down

0 comments on commit 3925ac1

Please sign in to comment.