more errors fixed :/
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user