improve raspberrypi check

This commit is contained in:
Aaron Murray 2021-04-12 11:50:20 -05:00
parent 56cf352ed9
commit 46e2abf075

View File

@ -13,7 +13,7 @@
# https://github.com/armbian/config/blob/master/debian-software
# https://forum.openmediavault.org/index.php/Thread/25062-Install-OMV5-on-Debian-10-Buster/
#
# version: 1.3.3
# version: 1.3.4
#
if [[ $(id -u) -ne 0 ]]; then
@ -162,7 +162,7 @@ fi
# Add Debian signing keys to raspbian to prevent apt-get update failures
# when OMV adds security and/or backports repos
if grep -q raspberrypi.org /etc/apt/sources.list.d/*; then
if grep -rq raspberrypi.org /etc/apt/*; then
echo "Adding Debian signing keys..."
for key in AA8E81B4331F7F50 112695A0E562B32A 04EE7237B7D453EC 648ACFD622F3D138; do
apt-key adv --no-tty --keyserver ${keyserver} --recv-keys "${key}"