echo "RPM is already installed"
elif sudo yum update -y $RPM_LIST | grep "does not update installed package"; then
if ! sudo yum downgrade -y $RPM_LIST; then
- yum remove -y opnfv-undercloud opnfv-common
+ sudo yum remove -y opnfv-undercloud opnfv-common
sudo yum downgrade -y $RPM_INSTALL_PATH
fi
fi
echo "RPM is already installed"
elif sudo yum update -y $RPM_LIST | grep "does not update installed package"; then
if ! sudo yum downgrade -y $RPM_LIST; then
- yum remove -y opnfv-undercloud opnfv-common
+ sudo yum remove -y opnfv-undercloud opnfv-common
sudo yum downgrade -y $RPM_INSTALL_PATH
fi
fi