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,26 +3442,30 @@ _DH_BASE_DIR=$DH_BASE_DIR
|
|||||||
_APACHE_VHOST_DIR=$APACHE_VHOST_DIR
|
_APACHE_VHOST_DIR=$APACHE_VHOST_DIR
|
||||||
_NGINX_VHOST_DIR=$NGINX_VHOST_DIR
|
_NGINX_VHOST_DIR=$NGINX_VHOST_DIR
|
||||||
|
|
||||||
if [[ ! -d "\$_APACHE_VHOST_DIR" ]]; then
|
if [[ -n "\$_APACHE_VHOST_DIR" ]] ; then
|
||||||
if [[ -d "/etc/apache2/sites-available" ]]; then
|
if [[ ! -d "\$_APACHE_VHOST_DIR" ]]; then
|
||||||
_VHOST_DIR=/etc/apache2/conf-available
|
if [[ -d "/etc/apache2/sites-available" ]]; then
|
||||||
elif [[ -d "/usr/local/apache2/conf/vhosts" ]]; then
|
_VHOST_DIR=/etc/apache2/conf-available
|
||||||
if [[ -d "/usr/local/apache2/conf/vhosts/0" ]]; then
|
elif [[ -d "/usr/local/apache2/conf/vhosts" ]]; then
|
||||||
_VHOST_DIR=/usr/local/apache2/conf/vhosts/0
|
if [[ -d "/usr/local/apache2/conf/vhosts/0" ]]; then
|
||||||
else
|
_VHOST_DIR=/usr/local/apache2/conf/vhosts/0
|
||||||
_VHOST_DIR=/usr/local/apache2/conf/vhosts
|
else
|
||||||
|
_VHOST_DIR=/usr/local/apache2/conf/vhosts
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
_VHOST_DIR=\$_APACHE_VHOST_DIR
|
||||||
fi
|
fi
|
||||||
else
|
|
||||||
_VHOST_DIR=\$_APACHE_VHOST_DIR
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ ! -d "\$_NGINX_VHOST_DIR" ]]; then
|
if [[ -n "\$_NGINX_VHOST_DIR" ]] ; then
|
||||||
if [[ -d "/etc/nginx/sites-available" ]]; then
|
if [[ ! -d "\$_NGINX_VHOST_DIR" ]]; then
|
||||||
|
if [[ -d "/etc/nginx/sites-available" ]]; then
|
||||||
|
_VHOST_DIR=\$_NGINX_VHOST_DIR
|
||||||
|
fi
|
||||||
|
else
|
||||||
_VHOST_DIR=\$_NGINX_VHOST_DIR
|
_VHOST_DIR=\$_NGINX_VHOST_DIR
|
||||||
fi
|
fi
|
||||||
else
|
|
||||||
_VHOST_DIR=\$_NGINX_VHOST_DIR
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_apache_debian_install=false
|
_apache_debian_install=false
|
||||||
|
Loading…
Reference in New Issue
Block a user