another fix for the rpi - install monit early from raspberrypi repo

This commit is contained in:
Aaron Murray 2020-08-25 11:48:00 -05:00
parent baf6b56818
commit 4513e7cc28

13
install
View File

@ -13,7 +13,7 @@
# https://github.com/armbian/config/blob/master/debian-software # https://github.com/armbian/config/blob/master/debian-software
# https://forum.openmediavault.org/index.php/Thread/25062-Install-OMV5-on-Debian-10-Buster/ # https://forum.openmediavault.org/index.php/Thread/25062-Install-OMV5-on-Debian-10-Buster/
# #
# version: 1.2.3 # version: 1.2.4
# #
if [[ $(id -u) -ne 0 ]]; then if [[ $(id -u) -ne 0 ]]; then
@ -135,6 +135,8 @@ if [[ "${distributor}" == "Raspbian" ]]; then
for key in AA8E81B4331F7F50 112695A0E562B32A 04EE7237B7D453EC 648ACFD622F3D138; do for key in AA8E81B4331F7F50 112695A0E562B32A 04EE7237B7D453EC 648ACFD622F3D138; do
apt-key adv --no-tty --keyserver ${keyserver} --recv-keys "${key}" apt-key adv --no-tty --keyserver ${keyserver} --recv-keys "${key}"
done done
echo "Installing monit from raspberrypi repo..."
apt-get --yes --no-install-recommends install -t buster monit
fi fi
echo "Install prerequisites..." echo "Install prerequisites..."
@ -166,9 +168,12 @@ if [[ ! "${omvInstall}" == "ii" ]]; then
exit 2 exit 2
fi fi
if ! apt-get --yes --no-install-recommends install monit; then monitInstall=$(dpkg -l | awk '$2 == "monit" { print $1 }')
echo "failed installing monit" if [[ ! "${monitInstall}" == "ii" ]]; then
exit 2 if ! apt-get --yes --no-install-recommends install monit; then
echo "failed installing monit"
exit 2
fi
fi fi
echo "Installing openmediavault..." echo "Installing openmediavault..."