mirror of
https://github.com/offen/docker-volume-backup.git
synced 2024-11-22 13:20:29 +01:00
Special characters in password do not break GPG test case
This commit is contained in:
parent
5c7856feb3
commit
3925ac1ee0
@ -9,7 +9,7 @@ services:
|
|||||||
BACKUP_FILENAME: test.tar.gz
|
BACKUP_FILENAME: test.tar.gz
|
||||||
BACKUP_LATEST_SYMLINK: test-latest.tar.gz.gpg
|
BACKUP_LATEST_SYMLINK: test-latest.tar.gz.gpg
|
||||||
BACKUP_RETENTION_DAYS: ${BACKUP_RETENTION_DAYS:-7}
|
BACKUP_RETENTION_DAYS: ${BACKUP_RETENTION_DAYS:-7}
|
||||||
GPG_PASSPHRASE: 1234secret
|
GPG_PASSPHRASE: 1234#$$ecret
|
||||||
volumes:
|
volumes:
|
||||||
- ./local:/archive
|
- ./local:/archive
|
||||||
- app_data:/backup/app_data:ro
|
- app_data:/backup/app_data:ro
|
||||||
|
@ -17,7 +17,7 @@ expect_running_containers "2"
|
|||||||
|
|
||||||
tmp_dir=$(mktemp -d)
|
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
|
tar -xf ./local/decrypted.tar.gz -C $tmp_dir
|
||||||
ls -lah $tmp_dir
|
ls -lah $tmp_dir
|
||||||
if [ ! -f $tmp_dir/backup/app_data/offen.db ]; then
|
if [ ! -f $tmp_dir/backup/app_data/offen.db ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user