defrag after upgrade
This commit is contained in:
parent
f8aefec776
commit
5e92fa6bea
|
@ -101,6 +101,7 @@ if [ -d $PROJECT_DIR ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
lockdown_permissions
|
lockdown_permissions
|
||||||
|
defrag_filesystem
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -87,4 +87,12 @@ function install_tomb {
|
||||||
mark_completed $FUNCNAME
|
mark_completed $FUNCNAME
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function defrag_filesystem {
|
||||||
|
fs_type=$(stat -f /)
|
||||||
|
|
||||||
|
if [[ "$fs_type" == *"btrfs"* ]]; then
|
||||||
|
btrfs filesystem defragment -v -r /
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
# NOTE: deliberately no exit 0
|
# NOTE: deliberately no exit 0
|
||||||
|
|
Loading…
Reference in New Issue