Moved resize partition to configure-stormux stub file.
This commit is contained in:
parent
2d140354df
commit
8c0e76b535
@ -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")
|
||||
|
Loading…
Reference in New Issue
Block a user