From fde472761d2adbb844330f9450674631f6afb3c8 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 11 Oct 2011 16:22:19 +0200 Subject: [PATCH] Modify ./release/sign to be able to use an other gpgkey (idea from Bruno) --- bacula/release/config | 6 ++++-- bacula/release/sign | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bacula/release/config b/bacula/release/config index acfebe7d33..fda09c874f 100644 --- a/bacula/release/config +++ b/bacula/release/config @@ -15,16 +15,17 @@ repo=$reltype # Bacula git repos bacula=${bacula:-${HOME}/bee/bacula} docs=${docs:-${HOME}/bee/docs} +gpgkey=${gpgkey:-bacula} # # Set the following to your remote name. By default it is origin. remote=${remote:-origin} +push=no -export push=no # # Note, you will probably want to set updatepo=no if you # run this script multiple times for a given release. -export updatepo=no +updatepo=no cwd=`pwd` @@ -44,5 +45,6 @@ ver=`sed -n -e 's/^.*VERSION.*"\(.*\)"$/\1/p' src/version.h` lsmdate=`sed -n -e 's/^.*LSMDATE.*"\(.*\)"$/\1/p' src/version.h` git checkout ${current} +export push updatepo gpgkey cd $cwd diff --git a/bacula/release/sign b/bacula/release/sign index 964780d2f1..872b2af749 100755 --- a/bacula/release/sign +++ b/bacula/release/sign @@ -1,3 +1,3 @@ #!/bin/sh -gpg --detach-sign --armor --default-key bacula -o $1.sig $1 +gpg --detach-sign --armor --default-key $gpgkey -o $1.sig $1 gpg --verify $1.sig -- 2.39.5