Changeset 191 for trunk/scripts/samhainadmin.pl.in
- Timestamp:
- Nov 7, 2008, 10:01:47 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/samhainadmin.pl.in
r53 r191 50 50 my $daemon = "@sbindir@/@install_name@"; 51 51 my $gpg = "@mygpg@"; 52 53 my $TARGETKEYID = "@mykeyid@"; 54 my $KEYTAG = "@mykeytag@"; 52 55 53 56 $cfgfile =~ s/^REQ_FROM_SERVER//; … … 502 505 if (defined($passphrase)) { 503 506 local $SIG{PIPE} = 'IGNORE'; 504 my $command = "$gpg --homedir $ENV{'HOME'}/.gnupg --passphrase-fd 0 -a --clearsign -o $fileout --not-dash-escaped $file1";507 my $command = "$gpg --homedir $ENV{'HOME'}/.gnupg --passphrase-fd 0 -a ${KEYTAG} ${TARGETKEYID} --clearsign -o $fileout --not-dash-escaped $file1"; 505 508 open (FH, "|$command") or die "can't fork: $!"; 506 509 print FH "$passphrase" or die "can't write: $!"; 507 510 close FH or die "can't close: status=$?"; 508 511 } else { 509 my $command = "$gpg --homedir $ENV{'HOME'}/.gnupg -a --clearsign -o $fileout --not-dash-escaped $file1";512 my $command = "$gpg --homedir $ENV{'HOME'}/.gnupg -a ${KEYTAG} ${TARGETKEYID} --clearsign -o $fileout --not-dash-escaped $file1"; 510 513 system("$command") == 0 511 514 or die "system $command failed: $?";
Note:
See TracChangeset
for help on using the changeset viewer.