summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-04-27 17:06:36 -0300
committerRenato Botelho <renato@netgate.com>2016-04-27 17:07:18 -0300
commit66f469dfe295f60b244a74097691f4c5ada01690 (patch)
tree143f2114484f0bd68115a7caa16361b0a1b9d35a /tools
parent81611520afb2b83f92040c2022f4c19e1443b2a2 (diff)
downloadpfsense-66f469dfe295f60b244a74097691f4c5ada01690.zip
pfsense-66f469dfe295f60b244a74097691f4c5ada01690.tar.gz
Initialize pkg repo sign command
Diffstat (limited to 'tools')
-rw-r--r--tools/builder_defaults.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/builder_defaults.sh b/tools/builder_defaults.sh
index d42b5de..32a56b6 100644
--- a/tools/builder_defaults.sh
+++ b/tools/builder_defaults.sh
@@ -325,8 +325,13 @@ else
export PKG_REPO_BRANCH_STAGING=${PKG_REPO_BRANCH_STAGING:-${PKG_REPO_BRANCH_DEVEL}}
fi
+if [ -n "${_IS_RELEASE}" ]; then
+ export PKG_REPO_SIGN_KEY=${PKG_REPO_SIGN_KEY:-"release${PRODUCT_NAME_SUFFIX}"}
+else
+ export PKG_REPO_SIGN_KEY=${PKG_REPO_SIGN_KEY:-"beta${PRODUCT_NAME_SUFFIX}"}
+fi
# Command used to sign pkg repo
-export PKG_REPO_SIGNING_COMMAND=${PKG_REPO_SIGNING_COMMAND:-""}
+export PKG_REPO_SIGNING_COMMAND=${PKG_REPO_SIGNING_COMMAND:-"ssh sign@codesigner.netgate.com sudo ./sign.sh ${PKG_REPO_SIGN_KEY}"}
# Define base package version, based on date for snaps
export CORE_PKG_VERSION="${PRODUCT_VERSION%%-*}${CORE_PKG_DATESTRING}"
OpenPOWER on IntegriCloud