AFixd applying nopublick option

This commit is contained in:
Alexey Berezhok
2024-06-12 15:58:13 +03:00
parent 694825461a
commit 12d787ea87
4 changed files with 26 additions and 9 deletions

View File

@@ -221,6 +221,11 @@ rebuild_user_conf() {
# WEB domain rebuild
rebuild_web_domain_conf() {
WWW_USER="www-data"
if [ -f /etc/redhat-release ]; then
WWW_USER="apache"
fi
if [ "$WEB_SYSTEM" = "httpd" ]; then
confd="conf.h.d"
else
@@ -478,7 +483,7 @@ rebuild_web_domain_conf() {
$HOMEDIR/$user/web/$domain/document_errors
chmod 640 /var/log/$WEB_SYSTEM/domains/$domain.*
chown --no-dereference $user:www-data $HOMEDIR/$user/web/$domain/public_*html
chown --no-dereference $user:$WWW_USER $HOMEDIR/$user/web/$domain/public_*html
}
# DNS domain rebuild
rebuild_dns_domain_conf() {