fixed errors
This commit is contained in:
@@ -28,14 +28,13 @@ Sleep 1
|
|||||||
function createuser {
|
function createuser {
|
||||||
echo "Creating User"
|
echo "Creating User"
|
||||||
sleep 1
|
sleep 1
|
||||||
while ($userprompt == "yes" or "y" {
|
while [$userprompt == "yes" or "y"]; do
|
||||||
$user = read -p ("Please enter user name: ")
|
read -p "Please enter user name: " user
|
||||||
useradd $user
|
useradd $user
|
||||||
usermod -aG sudo $user
|
usermod -aG sudo $user
|
||||||
usermod -aG docker $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
|
update
|
||||||
|
|
||||||
$dockerprompt = read -p ("Do you want to install Docker? ")
|
$dockerprompt = read -p ("Do you want to install Docker?) "
|
||||||
if ($dockerprompt == "yes" or "y") {
|
if [$dockerprompt == "yes" or "y"]; then
|
||||||
installdocker }
|
installdocker
|
||||||
else
|
else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
$userprompt = read -p ("Would you like to add a user? ")
|
read -p "Would you like to add a user? " userprompt
|
||||||
if ($userprompt == "yes" or "y") {
|
if [$userprompt == "yes" or "y"] ; then
|
||||||
createuser }
|
createuser
|
||||||
else
|
else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# echo <<EOF
|
||||||
|
# "Install additional Application
|
||||||
|
# 1. Tmate
|
||||||
|
# 2. Htop
|
||||||
|
# 3. Ansible
|
||||||
|
# 4. Tailscale
|
||||||
|
# 5.
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user