fix: move libvhdi-tools install inside correct if statement

This commit is contained in:
Roni Väyrynen
2025-02-07 10:46:26 +02:00
parent c9417e7a31
commit 731e68a374

View File

@@ -247,15 +247,14 @@ function InstallDependenciesRPM {
# Only install libvhdi-tools if vhdimount is not present
if [[ -z $(runcmd_stdout "command -v vhdimount") ]]; then
if [[ "$INSTALL_REPOS" == "true" ]] && [[ "$INSTALL_EL_LIBVHDI" == "true" ]]; then
echo
printprog "Installing libvhdi-tools"
if [[ "$INSTALL_REPOS" == "true" ]] && [[ "$INSTALL_EL_LIBVHDI" == "true" ]]; then
runcmd "dnf copr enable -y bnerickson/libvhdi"
fi
runcmd "dnf install -y libvhdi-tools"
printok "Installing libvhdi-tools"
fi
fi
echo
printprog "Enabling and starting redis service"