All pastes #434768 Raw Edit

Someone

public text v1 · immutable
·published 2007-04-11 16:22 UTC
rendered paste body
#: Get user comments field :#
needinput=yes
while [ ! -z "$needinput" ]; do
  clear
  echo "(REQUIRED) Enter a valid user comment from the list below:"
  echo
  echo "[ROOT] = 'root' account"
  echo "[SA]   = Officially assigned System Administrator"
  echo "[DBA]  = Database Administrator"
  echo "[WEB]  = Webmaster or We Content Administrator"
  echo "[APP]  = Application Administrator"
  echo "[SU]   = Superuser"
  echo "[AU]   = Infrastructure Auditor Accounts"
  echo "[SVC]  = Service Account (e.g., bin, sys)"
  echo "[EMP]  = Business Account (Employee)"
  echo "[CTR]  = Business Account (Contractor)"
  echo "[PUB]  = Business Account (General Public or Non-IRS, e.g. State Employee)"
  echo "[DEV]  = Developer Account (Employee or Contractor)"
  echo "[TST]  = Testing Account (Employee or Contractor)"
  echo "[TRN]  = Traning Account (Employee or Contractor)"
  echo
  GETC="1"
   while [ "$GETC" -eq "1" ]; do
   COM="$(get_input "User Comments []:")"
   echo
     # Check to see whether the comment is a valid type
     if [ "$COM" = "[ROOT]" ]; then
       GETC="2"
       unset needinput
     elif [ "$COM" = "[SA]" ]; then
       GETC="2"
       unset needinput
     elif [ "$COM" = "[DBA]" ]; then
       GETC="2"
       unset needinput
     elif [ "$COM" = "[WEB]" ]; then
       GETC="2"
       unset needinput
     elif [ "$COM" = "[APP]" ]; then
       GETC="2"
       unset needinput
     elif [ "$COM" = "[SU]" ]; then
       GETC="2"
       unset needinput
     elif [ "$COM" = "[AU]" ]; then
       GETC="2"
       unset needinput
     elif [ "$COM" = "[SVC]" ]; then
       GETC="2"
       unset needinput
     elif [ "$COM" = "[EMP]" ]; then
       GETC="2"
       unset needinput
     elif [ "$COM" = "[CTR]" ]; then
       GETC="2"
       unset needinput
     elif [ "$COM" = "[PUB]" ]; then
       GETC="2"
       unset needinput
     elif [ "$COM" = "[DEV]" ]; then
       GETC="2"
       unset needinput
     elif [ "$COM" = "[TST]" ]; then
       GETC="2"
       unset needinput
     elif [ "$COM" = "[TRN]" ]; then
       GETC="2"
       unset needinput
     else
       GETC="1"
   done
done