Skip to content
Snippets Groups Projects
Verified Commit 737c28aa authored by Michal Hrusecky's avatar Michal Hrusecky :mouse:
Browse files

lxc-generator: Workaround to use password from file

parent c6db7539
No related branches found
No related tags found
No related merge requests found
......@@ -44,7 +44,7 @@ add_image "Ubuntu_Cloud" "16.04" "armv7l" "https://uec-images.ubuntu.com/release
if [ "`gpg -K`" ]; then
if [ -f ~/gpg-pass ]; then
find . -type f -exec gpg --passphrase-file ~/gpg-pass -a --detach-sign \{\} \;
find . -type f -exec echo cat ~/gpg-pass \| gpg --batch --no-tty --yes --passphrase-fd 0 -a --detach-sign \{\} \; | sh
else
find . -type f -exec gpg -a --detach-sign \{\} \;
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment