From cf90d0745442854e2dbfe0a1bfa00df0759b3592 Mon Sep 17 00:00:00 2001 From: Aaron Murray Date: Mon, 16 Sep 2019 09:07:16 -0500 Subject: [PATCH] fix version dependent commands --- install | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/install b/install index 1ea95ab..1b3ddcd 100644 --- a/install +++ b/install @@ -60,11 +60,11 @@ if dpkg -l openmediavault > /dev/null; then install openmediavault if [ ${version} -eq 5 ]; then + omv-confdbadm populate + elif [ ${version} -lt 5 ]; then omv-initsystem omv-mkconf interfaces omv-mkconf issue - elif [ ${version} -lt 5 ]; then - omv-confdbadm populate fi fi @@ -87,9 +87,9 @@ if [ -f "${file}" ]; then fi wget --no-check-certificate ${url}/${file} if [ -f "${file}" ]; then - if ! dpkg -i ${file}; then + if ! dpkg --install ${file}; then echo "Installing other dependencies ..." - apt-get -f install + apt-get --fix-broken install fi echo "Updating repos ..."