Add fedora support to the update command

This commit is contained in:
2024-03-27 20:29:07 +00:00
committed by GitHub
parent 6dad020244
commit be2ddadea5

View File

@@ -66,6 +66,11 @@
paccache -rk1
fi
sudo journalctl --vacuum-time=7d
elif [ "$(grep -Ei 'fedora' /etc/*release)" ]; then
echo "Updating Fedora..."
sudo dnf upgrade --refresh
sudo dnf autoremove
sudo journalctl --vacuum-time=7d
else
echo "Unknown distro, skipping system update."
fi