#!/bin/bash
gpghome="/var/local/debian-arege/tools/etc/gnupg"

env - /usr/bin/gpg --no-permission-warning --homedir "$gpghome" "$@"
ret=$?
chmod -R g+rw "$gpghome"
exit $ret
