install monit after adding omv repos

This commit is contained in:
Aaron Murray 2020-08-24 05:49:40 -05:00
parent d3e59cd9b0
commit baf6b56818

12
install
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.2.2
# version: 1.2.3
#
if [[ $(id -u) -ne 0 ]]; then
@ -144,11 +144,6 @@ apt-get --yes --no-install-recommends install dirmngr gnupg
omvInstall=$(dpkg -l | awk '$2 == "openmediavault" { print $1 }')
if [[ ! "${omvInstall}" == "ii" ]]; then
echo "Installing openmediavault required packages..."
if ! apt-get --yes --no-install-recommends install monit; then
echo "failed installing monit"
exit 2
fi
if ! apt-get --yes --no-install-recommends install postfix; then
echo "failed installing postfix"
exit 2
@ -171,6 +166,11 @@ if [[ ! "${omvInstall}" == "ii" ]]; then
exit 2
fi
if ! apt-get --yes --no-install-recommends install monit; then
echo "failed installing monit"
exit 2
fi
echo "Installing openmediavault..."
aptFlags="--yes --auto-remove --show-upgraded --allow-downgrades --allow-change-held-packages --no-install-recommends"
cmd="apt-get ${aptFlags} install openmediavault"