more errors fixed :/

This commit is contained in:
mkono87
2021-11-30 22:15:00 -05:00
parent 3fe2cac439
commit 0974f9f592

View File

@@ -28,12 +28,12 @@ Sleep 1
function createuser {
echo "Creating User"
sleep 1
while [$userprompt == "yes" or "y"]; do
while [$userprompt == "y"]; do
read -p "Please enter user name: " user
useradd $user
usermod -aG sudo $user
usermod -aG docker $user
read -p "Do you want to add another user? " userprompt
read -p "Do you want to add another user? [y/n] " userprompt
done
}
@@ -42,17 +42,15 @@ done
update
$dockerprompt = read -p ("Do you want to install Docker?) "
if [$dockerprompt == "yes" or "y"]; then
installdocker
else
read -p "Do you want to install Docker? [y/n] " dockerprompt
if [$dockerprompt == "y"]; then
installdocker()
fi
read -p "Would you like to add a user? " userprompt
if [$userprompt == "yes" or "y"] ; then
createuser
else
read -p "Would you like to add a user? [y/n] " userprompt
if [$userprompt == "y"]; then
createuser()
fi
# echo <<EOF