mirror of
https://github.com/ivabus/pantry
synced 2024-11-26 02:15:06 +03:00
60d3d1dfec
don't include a gpg.conf so our shim can make its own.
18 lines
No EOL
280 B
Bash
Executable file
18 lines
No EOL
280 B
Bash
Executable file
#!/bin/sh
|
|
|
|
d=$(dirname "$0")
|
|
etc="$d/../etc/gnupg"
|
|
|
|
export GNUPGHOME="${GNUPGHOME:-"$etc"}"
|
|
|
|
if [ ! -f "$etc/gpg.conf" ]; then
|
|
mkdir -p "$etc"
|
|
chmod 700 "$etc"
|
|
cat << EOF > "$etc"/gpg.conf
|
|
use-agent
|
|
pinentry-mode loopback
|
|
agent-program $d/gpg-agent
|
|
EOF
|
|
fi
|
|
|
|
exec "$d"/gpg-exec "$@" |