Switch new user function
This commit is contained in:
parent
08dc9bd6a9
commit
e2cc046e3a
1 changed files with 10 additions and 10 deletions
20
script.sh
20
script.sh
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue