Skip to content

Commit 671779b

Browse files
committed
CA-264428: Use --batch when calling gpg
If the `import-update-key` script is used when a TTY is not available (e.g. during RPM installation), it can result in a situation where the key is imported, but not marked as trusted. By passing `--batch` we avoid this situation. Signed-off-by: Alex Brett <[email protected]>
1 parent 50256b7 commit 671779b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/import-update-key

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
gpgopts="--homedir=/opt/xensource/gpg"
3+
gpgopts="--homedir=/opt/xensource/gpg --batch"
44

55
set -e
66

0 commit comments

Comments
 (0)