install_dehydrated.sh: if both, apache2 and nginx, are installed script created update_ssl_directives.sh didn't work if apache2 is active.
This commit is contained in:
parent
4cffa00ab8
commit
3ea8483c6b
@ -3442,6 +3442,7 @@ _DH_BASE_DIR=$DH_BASE_DIR
|
||||
_APACHE_VHOST_DIR=$APACHE_VHOST_DIR
|
||||
_NGINX_VHOST_DIR=$NGINX_VHOST_DIR
|
||||
|
||||
if [[ -n "\$_APACHE_VHOST_DIR" ]] ; then
|
||||
if [[ ! -d "\$_APACHE_VHOST_DIR" ]]; then
|
||||
if [[ -d "/etc/apache2/sites-available" ]]; then
|
||||
_VHOST_DIR=/etc/apache2/conf-available
|
||||
@ -3455,7 +3456,9 @@ if [[ ! -d "\$_APACHE_VHOST_DIR" ]]; then
|
||||
else
|
||||
_VHOST_DIR=\$_APACHE_VHOST_DIR
|
||||
fi
|
||||
fi
|
||||
|
||||
if [[ -n "\$_NGINX_VHOST_DIR" ]] ; then
|
||||
if [[ ! -d "\$_NGINX_VHOST_DIR" ]]; then
|
||||
if [[ -d "/etc/nginx/sites-available" ]]; then
|
||||
_VHOST_DIR=\$_NGINX_VHOST_DIR
|
||||
@ -3463,6 +3466,7 @@ if [[ ! -d "\$_NGINX_VHOST_DIR" ]]; then
|
||||
else
|
||||
_VHOST_DIR=\$_NGINX_VHOST_DIR
|
||||
fi
|
||||
fi
|
||||
|
||||
_apache_debian_install=false
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user