Navigation Menu

Skip to content

Commit

Permalink
added user input for website url
Browse files Browse the repository at this point in the history
  • Loading branch information
okor committed May 25, 2012
1 parent 24b0d88 commit a26829b
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions build.sh
Expand Up @@ -14,15 +14,28 @@ LEMPress="$HOME/LEMPress"




URL="new-wordpress-site.com"
DEFAULT_URL="new-wordpress-site.com"
URL=""

# Change these if you have alternate configuration files
TMUX_CONFIG="$LEMPress/configs/tmux.conf"
FASTCGI_INIT="$LEMPress/configs/fastcgi-init.sh"



function get_website_url() {
echo -n "Enter website URL [DEFAULT:new-wordpress-site.com]: "
read USER_URL

if [ -z $USER_URL ]
then
URL=$DEFAULT_URL
else
URL=$USER_URL
fi

echo "URL set to: $URL"
}



Expand Down Expand Up @@ -134,6 +147,8 @@ function start_servers() {


# Do it
get_website_url

upgrade

install_ruby
Expand All @@ -151,10 +166,11 @@ configure_bash

start_servers

PUBLIC_IP=`ruby $LEMPress/scripts/get_ip.rb`




PUBLIC_IP=`ruby $LEMPress/scripts/get_ip.rb`
echo -e "\033[32m" && \
echo -e "\033[32mOk, you're all done. Point your browser at your server (URL: $URL, IP: $PUBLIC_IP) , and you should see a new wordpress site." && \
echo -e "\033[32m" && \
Expand Down

0 comments on commit a26829b

Please sign in to comment.