From 8c0e76b5354c031ed1122859698e4e0cbf21d6fd Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Fri, 8 Mar 2024 16:27:09 -0500 Subject: [PATCH] Moved resize partition to configure-stormux stub file. --- configure-stormux.sh | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/configure-stormux.sh b/configure-stormux.sh index 5f41daf..f1a7db4 100755 --- a/configure-stormux.sh +++ b/configure-stormux.sh @@ -47,20 +47,6 @@ if [[ ! -d ~/Desktop ]]; then xdg-user-dirs-update 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 case "$choice" in "Change username")