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:
Christoph 2022-08-01 11:15:03 +02:00
parent 4cffa00ab8
commit 3ea8483c6b

View File

@ -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