Hi All
I am having an issue automating the decryption of a file in a bash scrip..
I have a passphrase file and the 1st time I run the bash script it asks for the password, but subsequent runs of the script I don't get this and it runs ok. When added to the cron though it fails.
This is my code hopefully someone can point me in the direction I am going wrong
Code:
pass_phrase=`cat /scripts/passphrase.txt|awk '{print $1}'`
gpg --passphrase $pass_phrase --output cdr.zip --decrypt cdrext.zip.asc
This is running on Ubuntu 20.04.5 LTS & gpg (GnuPG) 2.2.19
Thanks