From b105af6d174c846ff2925b693eb8b907da9ea842 Mon Sep 17 00:00:00 2001 From: ligc Date: Tue, 2 Jun 2015 22:59:04 -0400 Subject: [PATCH] update buildcore.sh to add a new environment variable RPMSIGN to specify if the RPMs will be signed --- buildcore.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/buildcore.sh b/buildcore.sh index 086274182..72cf245cd 100755 --- a/buildcore.sh +++ b/buildcore.sh @@ -37,6 +37,7 @@ # EMBED= - the environment for which a minimal version of xcat should be built, e.g. zvm or flex # VERBOSE=1 - to see lots of verbose output # LOG= - provide an LOG file option to redirect some output into log file +# RPMSIGN=0 or RPMSIGN=1 - Sign the RPMs using the keys on GSA # you can change this if you need to UPLOADUSER=litingt @@ -370,7 +371,7 @@ if [ ! -z ${LOG} ]; then fi # get gpg keys in place -if [ "$OSNAME" != "AIX" ]; then +if [ "$OSNAME" != "AIX" ] && ( [ -z "$RPMSIGN" ] || [ "$RPMSIGN" == "1" ] ); then mkdir -p $HOME/.gnupg for i in pubring.gpg secring.gpg trustdb.gpg; do if [ ! -f $HOME/.gnupg/$i ] || [ `wc -c $HOME/.gnupg/$i|cut -f 1 -d' '` == 0 ]; then