Switch new user function

This commit is contained in:
joeri 2024-08-03 13:19:57 +02:00
parent 08dc9bd6a9
commit e2cc046e3a

View file

@ -49,16 +49,6 @@ case "$DISTRO" in
exit 1 exit 1
esac esac
# Asking if the user wants to create a new user
echo "Do you want to create a new user? (y/n): "
read CREATE_USER
if [ "$CREATE_USER" = "y" ]; then
create_new_user
else
echo "No new user will be created."
fi
# Function to create a new user # Function to create a new user
create_new_user() { create_new_user() {
echo "Enter the username for the new user: " echo "Enter the username for the new user: "
@ -78,6 +68,16 @@ create_new_user() {
fi fi
} }
# Asking if the user wants to create a new user
echo "Do you want to create a new user? (y/n): "
read CREATE_USER
if [ "$CREATE_USER" = "y" ]; then
create_new_user
else
echo "No new user will be created."
fi
# Asking if the user wants to install Docker # Asking if the user wants to install Docker
echo "Do you want to install Docker & Docker Compose? (y/n): " echo "Do you want to install Docker & Docker Compose? (y/n): "
read INSTALL_DOCKER read INSTALL_DOCKER