Moved resize partition to configure-stormux stub file.

This commit is contained in:
Storm Dragon 2024-03-08 16:27:09 -05:00
parent 2d140354df
commit 8c0e76b535

View File

@ -47,20 +47,6 @@ if [[ ! -d ~/Desktop ]]; then
xdg-user-dirs-update xdg-user-dirs-update
fi fi
# Set up logging
echo -e "\n\n-----> Logging started at $(date '+%A, %B %d, %Y at %I:%M%p')\n" >> "${XDG_CACHE_HOME:-$HOME/.cache}/configure-stormux.log"
exec &> >(/usr/bin/tee -a "${XDG_CACHE_HOME:-$HOME/.cache}/configure-stormux.log")
# Check for possible resize
diskSource="$(df --output='source' / | tail -1)"
diskSize="$(df -h --output='size' / | tail -1 | tr -cd '[:digit:].')"
diskSize=${diskSize%.*}
if [[ $diskSize -le 5 ]]; then
if [[ "$(yesno "$diskSource is only $diskSize gigs, which means it probably needs to be resized. Would you like to do this now?")" == "Yes" ]]; then
sudo "${sudoFlags[@]}" growpartfs $diskSource
fi
fi
while [[ "$choice" != "Exit" ]]; do while [[ "$choice" != "Exit" ]]; do
case "$choice" in case "$choice" in
"Change username") "Change username")