* Fixup wording
* Removed clean_up from the if block
This commit is contained in:
parent
45b8e87546
commit
dce6be0601
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue