Skip to content

Commit

Permalink
Update oobe.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
kaelemc committed Dec 1, 2024
1 parent b64c9ba commit f7d584d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions oobe.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ DEFAULT_UID='1000'

# We know the user clab exists from Dockerfile with UID 1000
if getent passwd "$DEFAULT_UID" > /dev/null ; then
echo 'User account clab already exists, skipping creation'
containerlab version
echo -e '\n'
echo " Welcome to Containerlab's WSL distribution."
exit 0
fi

# This part will never be reached since clab user exists,
# This part will (should) never be reached since clab user exists,
# but keeping it as a fallback
echo 'Please create a default UNIX user account. The username does not need to match your Windows username.'
echo 'For more information visit: https://aka.ms/wslusers'
echo 'No user account detected, Something may be wrong with your installation. Create an issue at <githubIssueLink>'
exit 1

0 comments on commit f7d584d

Please sign in to comment.