Commit e2550d5e authored by Jorge Moratinos's avatar Jorge Moratinos
Browse files

Remove local variable for remote creation and remove users

parent 9a001d39
Loading
Loading
Loading
Loading
Loading
+1 −5
Original line number Original line Diff line number Diff line
@@ -10,14 +10,13 @@ help() {
  echo "Usage: $1 <options>"
  echo "Usage: $1 <options>"
  echo "       -u : User prefix to use"
  echo "       -u : User prefix to use"
  echo "       -p : Password to set for user"
  echo "       -p : Password to set for user"
  echo "       -l : Local usage of script (default true)"
  echo "       -t : Total user to create (default 1)"  
  echo "       -t : Total user to create (default 1)"  
  echo "       -h : show this help"
  echo "       -h : show this help"
  exit 1
  exit 1
}
}


# Read params
# Read params
while getopts ":u:p:l:t:h" opt; do
while getopts ":u:p:t:h" opt; do
  case $opt in
  case $opt in
    u)
    u)
      USERNAME_PREFIX="$OPTARG"
      USERNAME_PREFIX="$OPTARG"
@@ -25,9 +24,6 @@ while getopts ":u:p:l:t:h" opt; do
    p)
    p)
      USER_PASSWORD=$OPTARG
      USER_PASSWORD=$OPTARG
      ;;
      ;;
    l)
      LOCAL=$OPTARG
      ;;
    t)
    t)
      TOTAL_USERS=$OPTARG
      TOTAL_USERS=$OPTARG
      ;;
      ;;
+1 −5
Original line number Original line Diff line number Diff line
@@ -7,20 +7,16 @@ USERNAME_PREFIX=
help() {
help() {
  echo "Usage: $1 <options>"
  echo "Usage: $1 <options>"
  echo "       -u : User prefix to use"
  echo "       -u : User prefix to use"
  echo "       -l : Local usage of script (default true)"
  echo "       -h : show this help"
  echo "       -h : show this help"
  exit 1
  exit 1
}
}


# Read params
# Read params
while getopts ":u:p:l:t:h" opt; do
while getopts ":u:p:t:h" opt; do
  case $opt in
  case $opt in
    u)
    u)
      USERNAME_PREFIX="$OPTARG"
      USERNAME_PREFIX="$OPTARG"
      ;;
      ;;
    l)
      LOCAL=$OPTARG
      ;;
    h)
    h)
      help
      help
      ;;  
      ;;