defrag after upgrade
This commit is contained in:
parent
f8aefec776
commit
5e92fa6bea
|
@ -101,6 +101,7 @@ if [ -d $PROJECT_DIR ]; then
|
|||
fi
|
||||
|
||||
lockdown_permissions
|
||||
defrag_filesystem
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
@ -87,4 +87,12 @@ function install_tomb {
|
|||
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
|
||||
|
|
Loading…
Reference in New Issue