diff --git a/configure-stormux.sh b/configure-stormux.sh index 289df9f..849566b 100755 --- a/configure-stormux.sh +++ b/configure-stormux.sh @@ -32,6 +32,15 @@ if [[ ! -d ~/Desktop ]]; then xdg-user-dirs-update fi +# Check for possible resize +diskSource="$(df --output='source' / | tail -1)" +diskSize="$(df -h --output='size' / | tail -1 | tr -cd '[:digit:]')" +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 growpartfs $diskSource + fi +fi + while [[ "$choice" != "Exit" ]]; do case "$choice" in "Change username")