* 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
|
function clean_up
|
||||||
{
|
{
|
||||||
debug "Removing Nginx configuration and logs..."
|
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
|
rm /var/log/nginx/"$_domain".* > /dev/null 2>&1
|
||||||
reload_nginx
|
reload_nginx
|
||||||
err "$1"
|
err "$1"
|
||||||
|
@ -237,7 +237,7 @@ if test -n "$_listenip"; then
|
||||||
fi
|
fi
|
||||||
_listenip="$_listenip:"
|
_listenip="$_listenip:"
|
||||||
else
|
else
|
||||||
warn "Listen ip not specified, listening on all interfaces."
|
warn "No listen ip specified, listening on all interfaces."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -z "$_root" -a -z "$_backend"; then
|
if test -z "$_root" -a -z "$_backend"; then
|
||||||
|
@ -255,7 +255,6 @@ fi
|
||||||
echo -n "Checking if conf path '$_confpath' exists? "
|
echo -n "Checking if conf path '$_confpath' exists? "
|
||||||
if test -d "$_confpath"; then
|
if test -d "$_confpath"; then
|
||||||
echo "Yes!"
|
echo "Yes!"
|
||||||
clean_up
|
|
||||||
else
|
else
|
||||||
echo "No!"
|
echo "No!"
|
||||||
clean_up
|
clean_up
|
||||||
|
|
Loading…
Add table
Reference in a new issue