install monit before openmediavault

This commit is contained in:
Aaron Murray 2020-08-21 06:37:11 -05:00
parent 6dbdb48bc5
commit d3e59cd9b0

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.1
# version: 1.2.2
#
if [[ $(id -u) -ne 0 ]]; then
@ -144,6 +144,11 @@ 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