HADOOP-15923. create-release script should set max-cache-ttl as well as default-cache-ttl for gpg-agent.

(cherry picked from commit 703b2860a4)
This commit is contained in:
Akira Ajisaka 2018-11-13 13:40:43 +09:00
parent b6ef824e76
commit e67e00724e
No known key found for this signature in database
GPG Key ID: C1EDBB9CA400FD50
1 changed files with 2 additions and 1 deletions

View File

@ -253,7 +253,8 @@ function startgpgagent
if [[ "${SIGN}" = true ]]; then if [[ "${SIGN}" = true ]]; then
if [[ -n "${GPGAGENT}" && -z "${GPG_AGENT_INFO}" ]]; then if [[ -n "${GPGAGENT}" && -z "${GPG_AGENT_INFO}" ]]; then
echo "starting gpg agent" echo "starting gpg agent"
echo "default-cache-ttl 14400" > "${LOGDIR}/gpgagent.conf" echo "default-cache-ttl 36000" > "${LOGDIR}/gpgagent.conf"
echo "max-cache-ttl 36000" >> "${LOGDIR}/gpgagent.conf"
# shellcheck disable=2046 # shellcheck disable=2046
eval $("${GPGAGENT}" --daemon \ eval $("${GPGAGENT}" --daemon \
--options "${LOGDIR}/gpgagent.conf" \ --options "${LOGDIR}/gpgagent.conf" \