From: Eric Bollengier Date: Tue, 11 Oct 2011 14:22:19 +0000 (+0200) Subject: Modify ./release/sign to be able to use an other gpgkey (idea from Bruno) X-Git-Tag: Release-7.0.0~552 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fde472761d2adbb844330f9450674631f6afb3c8;p=bacula%2Fbacula Modify ./release/sign to be able to use an other gpgkey (idea from Bruno) --- 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