Update haos_vm.sh

This commit is contained in:
tteck 2021-08-16 18:54:40 -04:00 committed by GitHub
parent 5ffc330ad7
commit dd222aa211
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,8 +113,8 @@ if [[ $FILE == *.zip ]]; then
echo -e "\e[1;33m Checking for unzip command... \e[0m" echo -e "\e[1;33m Checking for unzip command... \e[0m"
if ! command -v unzip &> /dev/null; then if ! command -v unzip &> /dev/null; then
echo -e "\e[1;33m Installing Unzip... \e[0m" echo -e "\e[1;33m Installing Unzip... \e[0m"
apt update >/dev/null apt-get --allow-releaseinfo-change update >/dev/null
apt install unzip -y apt-get -qqy install unzip &>/dev/null
fi fi
fi fi
@ -167,7 +167,7 @@ set +o errtrace
' ERR ' ERR
if [ "$(command -v kpartx)" = "" ]; then if [ "$(command -v kpartx)" = "" ]; then
echo -e "\e[1;33m Installing kpartx... \e[0m" echo -e "\e[1;33m Installing kpartx... \e[0m"
apt-get update >/dev/null apt-get --allow-releaseinfo-change update >/dev/null
apt-get -qqy install kpartx &>/dev/null apt-get -qqy install kpartx &>/dev/null
fi fi
DISK1_PATH="$(pvesm path $DISK1_REF)" DISK1_PATH="$(pvesm path $DISK1_REF)"