]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
gen_reprepro_conf.sh: take gpg key id on command line
authorSage Weil <sage@newdream.net>
Mon, 22 Oct 2012 20:19:12 +0000 (13:19 -0700)
committerSage Weil <sage@newdream.net>
Mon, 22 Oct 2012 20:19:12 +0000 (13:19 -0700)
gen_reprepro_conf.sh

index f5ae0edba563f5eccfcab58ebc508eaedf98bd97..d204a9a54d523906daf77b6290986264804057a0 100755 (executable)
@@ -4,6 +4,8 @@ set -e
 
 bindir=`dirname $0`
 path="$1"
+key="$2"
+[ -z "$key" ] && echo "usage: $0 <path> <gpgkeyid>" && exit 1
 
 if [ ! -d $path -o ! -d $path/conf ] ; then
     mkdir -p $path/conf
@@ -30,7 +32,7 @@ Description: Ceph distributed file system
 DebIndices: Packages Release . .gz .bz2
 DscIndices: Sources Release .gz .bz2
 Contents: .gz .bz2
-SignWith: 17ED316D
+SignWith: $key
 
 EOF
 done