diff --git a/createVhosts.sh b/createVhosts.sh index 88fdfc4..7f54588 100755 --- a/createVhosts.sh +++ b/createVhosts.sh @@ -60,7 +60,7 @@ function reload_nginx function clean_up { debug "Removing Nginx configuration and logs..." - rm "$_vhost_conf_file" + rm "$_vhost_conf_file" 2> /dev/null rm /var/log/nginx/"$_domain".* > /dev/null 2>&1 reload_nginx err "$1" @@ -237,7 +237,7 @@ if test -n "$_listenip"; then fi _listenip="$_listenip:" else - warn "Listen ip not specified, listening on all interfaces." + warn "No listen ip specified, listening on all interfaces." fi if test -z "$_root" -a -z "$_backend"; then @@ -255,7 +255,6 @@ fi echo -n "Checking if conf path '$_confpath' exists? " if test -d "$_confpath"; then echo "Yes!" - clean_up else echo "No!" clean_up