Skip to content

Commit f33df8c

Browse files
committed
Delete user ubuntu if exists
1 parent 4acfa49 commit f33df8c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bash_profile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ test -e ~/vhdresize.txt && rm ~/vhdresize.txt
2424
test -e ~/shutdown.cmd && rm ~/shutdown.cmd
2525
figlet -t -k -f /usr/share/figlet/mini.flf "Welcome to LinuxmintWSL" | lolcat
2626
echo -e "\033[33;7mDo not interrupt or close the terminal window till script finishes execution!!!\n\033[0m"
27+
getent passwd ubuntu >/dev/null && (
28+
userdel ubuntu
29+
rm -rf /home/ubuntu
30+
)
2731

2832
if [ "$disksize" -le 274877906944 ]; then
2933
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

0 commit comments

Comments
 (0)