chore: Remove old version prior to install

This commit is contained in:
Kyle Gospodnetich 2024-03-07 23:38:24 -08:00
parent a9e6e67f5f
commit 9496413077

View File

@ -8,6 +8,7 @@ if [[ $(rpm -qa | grep lact) ]]; then
if [[ ! $(rpm-ostree status | grep lact | grep $LACT_VERSION) ]]; then if [[ ! $(rpm-ostree status | grep lact | grep $LACT_VERSION) ]]; then
# This will check if *any* rpm-ostree pin has the newest version, so we don't update needlessly if a user just needs to reboot or is trying an older pin. # This will check if *any* rpm-ostree pin has the newest version, so we don't update needlessly if a user just needs to reboot or is trying an older pin.
echo "Found upstream version v$LACT_VERSION, updating..." echo "Found upstream version v$LACT_VERSION, updating..."
rpm-ostree remove $(rpm -qa | grep lact)
/usr/bin/ujust install-lact /usr/bin/ujust install-lact
echo "Update complete" echo "Update complete"
fi fi