Changeset 589 for trunk/scripts/samhainadmin-gpg.pl.in
- Timestamp:
- Oct 26, 2025, 12:25:51 PM (12 hours ago)
- File:
-
- 1 edited
-
trunk/scripts/samhainadmin-gpg.pl.in (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/samhainadmin-gpg.pl.in
r550 r589 156 156 print " Set the passphrase for gpg. By default, gpg will ask.\n\n"; 157 157 158 print " -s gnupg_homedir --secretkeyring gnupg_homedir\n";159 print " Select an alternate gpg homedirectory to locate the secret keyring.\n";160 print " Will use '$ENV{'HOME'}/.gnupg/' by default.\n\n";161 162 158 print " -k keyid --keyid keyid\n"; 163 159 print " Select the keyid to use for signing.\n\n"; … … 528 524 local $SIG{PIPE} = 'IGNORE'; 529 525 my $command = "$gpg --homedir $ENV{'HOME'}/.gnupg --passphrase-fd 0 -a ${KEYTAG} ${TARGETKEYID} --clearsign -o $fileout --not-dash-escaped "; 530 $command .= "--secret-keyring $secretkeyring " if (defined($opts{'s'}));531 526 $command .= "$file1"; 532 527 open (FH, "|$command") or die "can't fork: $!"; … … 535 530 } else { 536 531 my $command = "$gpg --homedir $ENV{'HOME'}/.gnupg -a ${KEYTAG} ${TARGETKEYID} --clearsign -o $fileout --not-dash-escaped "; 537 $command .= "--secret-keyring $secretkeyring " if (defined($opts{'s'}));538 532 $command .= "$file1"; 539 533 system("$command") == 0 … … 572 566 'd|datafile=s', 573 567 'p|passphrase=s', 574 's|secretkeyring=s',575 568 'k|keyid=s', 576 569 'create-cfgfile', # -m F
Note:
See TracChangeset
for help on using the changeset viewer.