HBASE-22852 Stop gpg agent daemons in hbase nightlies. (#525)

Signed-off-by: Stack <stack@apache.org>
Signed-off-by: Sean Busbey <busbey@apache.org>
(cherry picked from commit 0438fdc0f6)
This commit is contained in:
Rushabh 2019-08-22 14:48:58 -07:00 committed by Sean Busbey
parent fe689bf1d4
commit a386c6cdda
1 changed files with 6 additions and 0 deletions

View File

@ -78,6 +78,12 @@ else
fi
function cleanup {
if [ -n "${keys}" ]; then
echo "Stopping gpg agent daemon"
gpgconf --homedir "${working_dir}/.gpg" --kill gpg-agent
echo "Stopped gpg agent daemon"
fi
if [ "true" = "${cleanup}" ]; then
echo "cleaning up temp space."
rm -rf "${working_dir}"