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