From c6751f4fe83e3388f7ffb5921fc04456de7b0d90 Mon Sep 17 00:00:00 2001 From: Aaron Murray Date: Thu, 30 Apr 2020 06:37:28 -0500 Subject: [PATCH] make sure lsb-release is installed properly --- install | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/install b/install index b891d4d..5dcc2c4 100755 --- a/install +++ b/install @@ -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.0.7 +# version: 1.0.8 # if [[ $(id -u) -ne 0 ]]; then @@ -83,10 +83,8 @@ echo "New / permissions = $(stat -c %a /)" echo "Updating repos before installing..." apt-get update -if [ ! -f "/usr/bin/lsb_release" ]; then - echo "Installing lsb_release..." - apt-get --yes --no-install-recommends install lsb-release -fi +echo "Installing lsb_release..." +apt-get --yes --no-install-recommends --reinstall install lsb-release arch="$(dpkg --print-architecture)" codename="$(lsb_release --codename --short)"