Add missing configs if user already had snapper

This commit is contained in:
Ryan Hughes
2025-08-28 12:11:26 +03:00
parent 52dcf01987
commit 5f2b6566f1

10
migrations/1756153445.sh Normal file
View File

@@ -0,0 +1,10 @@
echo "Checking and correcting Snapper configs if needed"
if command -v snapper &>/dev/null; then
if ! sudo snapper list-configs 2>/dev/null | grep -q "root"; then
sudo snapper -c root create-config /
fi
if ! sudo snapper list-configs 2>/dev/null | grep -q "home"; then
sudo snapper -c home create-config /home
fi
fi