toolkit/func/core/pkg_release/20-check-gpg-keys.sh

12 lines
404 B
Bash
Raw Permalink Normal View History

2021-07-05 06:50:25 +00:00
#!/bin/bash
r_log "rocky" "Check the GPG keys"
2022-06-09 03:09:07 +00:00
if [ "$RL_VER" -eq 8 ]; then
file /etc/pki/rpm-gpg/RPM-GPG-KEY-rockyofficial > /dev/null 2>&1 && \
file /etc/pki/rpm-gpg/RPM-GPG-KEY-rockytesting > /dev/null 2>&1
else
2022-06-22 01:21:01 +00:00
file "/etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-${RL_VER}" > /dev/null 2>&1 && \
file "/etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-${RL_VER}-Testing" > /dev/null 2>&1
2022-06-09 03:09:07 +00:00
fi
2021-07-05 06:50:25 +00:00
r_checkExitStatus $?