Skip to content

Commit

Permalink
Delete user ubuntu if exists
Browse files Browse the repository at this point in the history
  • Loading branch information
sileshn committed Jul 30, 2024
1 parent 4acfa49 commit f33df8c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions bash_profile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ test -e ~/vhdresize.txt && rm ~/vhdresize.txt
test -e ~/shutdown.cmd && rm ~/shutdown.cmd
figlet -t -k -f /usr/share/figlet/mini.flf "Welcome to LinuxmintWSL" | lolcat
echo -e "\033[33;7mDo not interrupt or close the terminal window till script finishes execution!!!\n\033[0m"
getent passwd ubuntu >/dev/null && (
userdel ubuntu
rm -rf /home/ubuntu
)

if [ "$disksize" -le 274877906944 ]; then
echo -e ${grn}"LinuxmintWSL's VHD has a default maximum size of 256GB. Disk space errors which occur if size exceeds 256GB can be fixed by expanding the VHD. Would you like to resize your VHD? More information on this process is available at \033[36mhttps://docs.microsoft.com/en-us/windows/wsl/vhd-size\033[32m."${txtrst} | fold -sw $width
Expand Down

0 comments on commit f33df8c

Please sign in to comment.