fixed errors

This commit is contained in:
mkono87
2021-11-30 21:06:14 -05:00
parent bdcda4cad6
commit 3fe2cac439

View File

@@ -28,14 +28,13 @@ Sleep 1
function createuser {
echo "Creating User"
sleep 1
while ($userprompt == "yes" or "y" {
$user = read -p ("Please enter user name: ")
while [$userprompt == "yes" or "y"]; do
read -p "Please enter user name: " user
useradd $user
usermod -aG sudo $user
usermod -aG docker $user
$userprompt = read -p ("Do you want to add another user?")
}
read -p "Do you want to add another user? " userprompt
done
}
@@ -43,18 +42,25 @@ $userprompt = read -p ("Do you want to add another user?")
update
$dockerprompt = read -p ("Do you want to install Docker? ")
if ($dockerprompt == "yes" or "y") {
installdocker }
$dockerprompt = read -p ("Do you want to install Docker?) "
if [$dockerprompt == "yes" or "y"]; then
installdocker
else
fi
$userprompt = read -p ("Would you like to add a user? ")
if ($userprompt == "yes" or "y") {
createuser }
read -p "Would you like to add a user? " userprompt
if [$userprompt == "yes" or "y"] ; then
createuser
else
fi
# echo <<EOF
# "Install additional Application
# 1. Tmate
# 2. Htop
# 3. Ansible
# 4. Tailscale
# 5.