Skip to content

Commit f619d61

Browse files
authored
Probably good idea to not to rebuild web domains if Apache is frontend web server
1 parent d5f78d5 commit f619d61

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

upd/fix_nginx_auth.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@
33
source /etc/profile.d/vesta.sh
44
source /usr/local/vesta/conf/vesta.conf
55

6-
#if [ "$WEB_SYSTEM" != 'nginx' ]; then
7-
# exit
8-
#fi
9-
106
sed -i "s|web/%domain%/stats/auth.*|conf/web/%domain%.auth|" \
117
$VESTA/data/templates/web/nginx/*/*tpl >/dev/null 2>&1
128

9+
if [ "$WEB_SYSTEM" != 'nginx' ]; then
10+
exit
11+
fi
12+
1313
check=`egrep "STATS_USER='([0-9]|[a-Z].*)'" $VESTA/data/users/*/web.conf`
1414
if [ ! -z "$check" ]; then
1515
for user in $(echo $check |cut -f1 -d: |cut -f7 -d/); do

0 commit comments

Comments
 (0)