Ignore:
Timestamp:
Nov 7, 2008, 10:01:47 PM (16 years ago)
Author:
katerina
Message:

Patch for GnuPG key ID by Jim Dutton

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/samhain-install.sh.in

    r170 r191  
    13121312
    13131313    GPGPATH=@mygpg@
     1314    TARGETKEYID=@mykeyid@
     1315    KEYTAG=@mykeytag@
    13141316
    13151317    NTEST=@mytclient@
     
    13561358        echo "You need to sign the config file now"
    13571359        echo
    1358         test -z "$verbose" || echo "  ${GPGPATH} -a --clearsign $RCFILE"
     1360        test -z "$verbose" || echo "  ${GPGPATH} -a ${KEYTAG} ${TARGETKEYID} --clearsign $RCFILE"
    13591361        if test x"${NTEST}" = "x-DSH_WITH_SERVER"
    13601362        then
     
    13651367                DOT_GNUPG=`eval echo ~${samhain}/.gnupg`
    13661368                test -z "$verbose" || echo "  using --homedir ${DOT_GNUPG}"
    1367                 ${GPGPATH} --homedir ${DOT_GNUPG} -a --clearsign $RCFILE
     1369                ${GPGPATH} --homedir ${DOT_GNUPG} -a ${KEYTAG} ${TARGETKEYID} --clearsign $RCFILE
    13681370            else
    1369                 ${GPGPATH} -a --clearsign $RCFILE
    1370             fi
    1371         else
    1372             ${GPGPATH} -a --clearsign $RCFILE
     1371                ${GPGPATH} -a ${KEYTAG} ${TARGETKEYID} --clearsign $RCFILE
     1372            fi
     1373        else
     1374            ${GPGPATH} -a ${KEYTAG} ${TARGETKEYID} --clearsign $RCFILE
    13731375        fi
    13741376
Note: See TracChangeset for help on using the changeset viewer.