Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.91 KB | None | 0 0
  1. getConfig() {
  2.  
  3.   case $?? in
  4.         0)
  5.         echo "If you've uploaded dbdumper, you can get the database automagically!"
  6.         echo "You can also import it directly, and create a user automagically!"
  7.         echo "Are you a wizard? Did you put on your Hat and Robe?"
  8.         echo "Y or N?"
  9.         read wizard
  10.         case $wizard
  11.                 Y) d=
  12.                 while [ -f "$HOMEDIR$OWPDBN$d" ]; do
  13.                         let d=d+1
  14.                         done
  15.                         mv -f "$HOMEDIR$OWPDBN" "$HOMEDIR$OWPDBN$d"
  16.                         mv -f "$HOMEDIR$OWPDBN" "$NDBUN"
  17.                         echo
  18.                         echo -e "\e[32;32mFile replaced\e[0m"
  19.                         echo ;;
  20.                 *) echo
  21.                         echo -e "\e[31;31mFile not replaced\e[0m"
  22.                         echo ;;
  23.         esac ;;
  24.   *) echo "You Broke Something Sir."
  25.   esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement