diff --git a/Cloud_Setup/setup.sh b/Cloud_Setup/setup.sh index 72bdcf4..469330c 100644 --- a/Cloud_Setup/setup.sh +++ b/Cloud_Setup/setup.sh @@ -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 <