Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- getConfig() {
- case $?? in
- 0)
- echo "If you've uploaded dbdumper, you can get the database automagically!"
- echo "You can also import it directly, and create a user automagically!"
- echo "Are you a wizard? Did you put on your Hat and Robe?"
- echo "Y or N?"
- read wizard
- case $wizard
- Y) d=
- while [ -f "$HOMEDIR$OWPDBN$d" ]; do
- let d=d+1
- done
- mv -f "$HOMEDIR$OWPDBN" "$HOMEDIR$OWPDBN$d"
- mv -f "$HOMEDIR$OWPDBN" "$NDBUN"
- echo
- echo -e "\e[32;32mFile replaced\e[0m"
- echo ;;
- *) echo
- echo -e "\e[31;31mFile not replaced\e[0m"
- echo ;;
- esac ;;
- *) echo "You Broke Something Sir."
- esac
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement