Skip to content

Commit

Permalink
Add test to ensure_oracle_gpgkey_installed
Browse files Browse the repository at this point in the history
Signed-off-by: Armando Acosta <[email protected]>
  • Loading branch information
mrkanon committed Aug 26, 2024
1 parent 0316ca4 commit 76fac4e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash
#
# platform = multi_platform_ol

rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
#

# remove all available keys

KEYS=$(rpm -q gpg-pubkey --qf '%{NAME}-%{VERSION}-%{RELEASE}\n')

if [ $? = 0 ]; then
for KEY in $KEYS; do
rpm -e $KEY
done
fi

0 comments on commit 76fac4e

Please sign in to comment.