mirror of
https://github.com/deajan/obackup.git
synced 2024-11-15 04:03:41 +01:00
Add fix for GPG 2.1.11
This commit is contained in:
parent
ff94a0cbbc
commit
deb28458b1
@ -344,9 +344,12 @@ function test_GPG () {
|
|||||||
echo "$CRYPT_TOOL is $cryptToolVersion"
|
echo "$CRYPT_TOOL is $cryptToolVersion"
|
||||||
|
|
||||||
if [ $cryptToolMajorVersion -eq 2 ] && [ $cryptToolSubVersion -ge 1 ]; then
|
if [ $cryptToolMajorVersion -eq 2 ] && [ $cryptToolSubVersion -ge 1 ]; then
|
||||||
if [ $cryptToolMinorVersion -ge 11 ]; then
|
if [ $cryptToolMinorVersion -gt 11 ]; then
|
||||||
echo "Using --pinentry-mode loopback [$cryptToolMajorVersion.$cryptToolSubVersion.$cryptToolMinorVersion]"
|
echo "Using --pinentry-mode loopback [$cryptToolMajorVersion.$cryptToolSubVersion.$cryptToolMinorVersion]"
|
||||||
additionalParameters="--pinentry-mode loopback"
|
additionalParameters="--pinentry-mode loopback"
|
||||||
|
elif [ $cryptToolMinorVersion -eq 11 ]; then
|
||||||
|
echo "Using fix to allow --pinentry-mode loopback"
|
||||||
|
echo "allow-loopback-pinentry" >> {$HOME}/.gnupg/gpg-agent.conf
|
||||||
else
|
else
|
||||||
echo "Not using --pinentry-mode loopback [$cryptToolMajorVersion.$cryptToolSubVersion.$cryptToolMinorVersion]"
|
echo "Not using --pinentry-mode loopback [$cryptToolMajorVersion.$cryptToolSubVersion.$cryptToolMinorVersion]"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user