File tree Expand file tree Collapse file tree 10 files changed +182
-147
lines changed
install/deb/multiphp/nginx Expand file tree Collapse file tree 10 files changed +182
-147
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ for auth in $authz; do
166166 check_result $? " DNS _acme-challenge record wasn't created"
167167 else
168168 if [ -z " $mail " ]; then
169- if [ " $WEB_SYSTEM " = ' nginx' ] || [ ! -z " $PROXY_SYSTEM " ]; then
169+ if [ " $WEB_SYSTEM " = ' nginx' ] && [ ! -z " $PROXY_SYSTEM " ]; then
170170 if [ ! -z " $mail " ]; then
171171 conf=" $HOMEDIR /$user /conf/mail/$root_domain /$PROXY_SYSTEM .conf_letsencrypt"
172172 sconf=" $HOMEDIR /$user /conf/mail/$root_domain /$PROXY_SYSTEM .ssl.conf_letsencrypt"
Original file line number Diff line number Diff line change @@ -34,8 +34,12 @@ format_aliases
3434# Verifications #
3535# ----------------------------------------------------------#
3636
37+ if [ -z " $aliases " ]; then
38+ check_result $E_INVALID " invalid alias format: empty"
39+ fi
40+
3741check_args ' 3' " $# " ' USER DOMAIN ALIASES [RESTART]'
38- is_format_valid ' user' ' domain' ' dom_alias '
42+ is_format_valid ' user' ' domain' ' aliases '
3943is_system_enabled " $WEB_SYSTEM " ' WEB_SYSTEM'
4044is_object_valid ' user' ' USER' " $user "
4145is_object_unsuspended ' user' ' USER' " $user "
Original file line number Diff line number Diff line change 88# Variable&Function #
99# ----------------------------------------------------------#
1010
11- # Includes
12- source $HESTIA /func/main.sh
13- source $HESTIA /func/domain.sh
14- source $HESTIA /conf/hestia.conf
15-
1611# Argument definition
1712user=$1
1813domain=$2
1914restart=" $3 "
2015
16+ # Includes
17+ source $HESTIA /func/main.sh
18+ source $HESTIA /func/domain.sh
19+ source $HESTIA /conf/hestia.conf
20+
2121# Additional argument formatting
2222format_domain
2323format_domain_idn
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ pool_conf="[$2]
1010
1111listen = /run/php/php5.6-fpm-$2 .sock
1212listen.owner = $1
13- listen.group = $1
13+ listen.group = www-data
1414listen.mode = 0660
1515
1616user = $1
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ pool_conf="[$2]
1010
1111listen = /run/php/php7.0-fpm-$2 .sock
1212listen.owner = $1
13- listen.group = $1
13+ listen.group = www-data
1414listen.mode = 0660
1515
1616user = $1
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ pool_conf="[$2]
1010
1111listen = /run/php/php7.1-fpm-$2 .sock
1212listen.owner = $1
13- listen.group = $1
13+ listen.group = www-data
1414listen.mode = 0660
1515
1616user = $1
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ pool_conf="[$2]
1010
1111listen = /run/php/php7.2-fpm-$2 .sock
1212listen.owner = $1
13- listen.group = $1
13+ listen.group = www-data
1414listen.mode = 0660
1515
1616user = $1
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ pool_conf="[$2]
1010
1111listen = /run/php/php7.3-fpm-$2 .sock
1212listen.owner = $1
13- listen.group = $1
13+ listen.group = www-data
1414listen.mode = 0660
1515
1616user = $1
You can’t perform that action at this time.
0 commit comments