mirror of
https://github.com/deajan/obackup.git
synced 2024-11-14 19:53:42 +01:00
On the gpg 2.1.11 fix route
This commit is contained in:
parent
ac7f0376f5
commit
a47771964c
@ -1335,7 +1335,11 @@ function DecryptFiles {
|
||||
cryptToolSubVersion=${cryptToolSubVersion%.*}
|
||||
|
||||
if [ $cryptToolMajorVersion -eq 2 ] && [ $cryptToolSubVersion -ge 1 ]; then
|
||||
additionalParameters="--pinentry-mode loopback"
|
||||
if [ $cryptToolMinorVersion -gt 11 ]; then
|
||||
additionalParameters="--pinentry-mode loopback"
|
||||
elif [ $cryptToolMinorVersion -eq 11 ]; then
|
||||
Logger "GPG automatism via --pinentry-mode loopback not supported in gpg version 2.1.11. Please add allow-loopback-pinentry to your gpg-agent.conf file." "NOTICE"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -f "$passphraseFile" ]; then
|
||||
|
@ -349,8 +349,8 @@ function test_GPG () {
|
||||
additionalParameters="--pinentry-mode loopback"
|
||||
elif [ $cryptToolMinorVersion -eq 11 ]; then
|
||||
echo "Using fix to allow --pinentry-mode loopback"
|
||||
[ -f "{$HOME}/.gnupg/gpg-agent.conf" ] || touch "{$HOME}/.gnupg/gpg-agent.conf"
|
||||
echo "allow-loopback-pinentry" >> "{$HOME}/.gnupg/gpg-agent.conf"
|
||||
[ -f "${HOME}/.gnupg/gpg-agent.conf" ] || touch "${HOME}/.gnupg/gpg-agent.conf"
|
||||
echo "allow-loopback-pinentry" >> "${HOME}/.gnupg/gpg-agent.conf"
|
||||
gpgconf --reload gpg-agent
|
||||
else
|
||||
echo "Not using --pinentry-mode loopback [$cryptToolMajorVersion.$cryptToolSubVersion.$cryptToolMinorVersion]"
|
||||
|
Loading…
Reference in New Issue
Block a user