- function install_vanilla {
- echo "Welcome to the vanilla server wizard!"
- echo "We are going to install your server."
- echo "Thank you for using this."
- echo ""
- echo "First we going to prepare the server folder."
- if [ -d $SERVER ]
- echo "Server folder found. Not creating it."
- if [ -f $SERVER/server.jar ]
- echo "Server files found,"
- read -p "Do you want to remove them? [y/N] " SERVER_INSTALL_CONFIRM
- case $SERVER_INSTALL_CONFIRM in
- y) rm -D $SERVER;;
- Y) rm -D $SERVER;;
- n) echo "Server not installed!" && exit;;
- N) echo "Server not installed!" && exit;;
- *) echo "Server not installed!" && exit
- esac
- else
- echo "No files in folder found!"
- echo "Ignoring it."
- fi
- else
- echo "Server folder not found. Creating it."
- mkdir $SERVER
- fi
SHARE
TWEET
Bash: Syntax error?
a guest
Aug 31st, 2012
23
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
RAW Paste Data

