瀏覽代碼

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

(cherry picked from commit 703b2860a49577629e7b3ef461d8a61292e79c88)
Akira Ajisaka 6 年之前
父節點
當前提交
e67e00724e
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      dev-support/bin/create-release

+ 2 - 1
dev-support/bin/create-release

@@ -253,7 +253,8 @@ function startgpgagent
   if [[ "${SIGN}" = true ]]; then
     if [[ -n "${GPGAGENT}" && -z "${GPG_AGENT_INFO}" ]]; then
       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
       eval $("${GPGAGENT}" --daemon \
         --options "${LOGDIR}/gpgagent.conf" \