From f619d61df78fa5a9c7600132d25ea1b07b00a58d Mon Sep 17 00:00:00 2001 From: dpeca Date: Thu, 7 Dec 2017 08:05:25 +0100 Subject: [PATCH] Probably good idea to not to rebuild web domains if Apache is frontend web server --- upd/fix_nginx_auth.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/upd/fix_nginx_auth.sh b/upd/fix_nginx_auth.sh index eed5f1b9..5bed5790 100755 --- a/upd/fix_nginx_auth.sh +++ b/upd/fix_nginx_auth.sh @@ -3,13 +3,13 @@ source /etc/profile.d/vesta.sh source /usr/local/vesta/conf/vesta.conf -#if [ "$WEB_SYSTEM" != 'nginx' ]; then -# exit -#fi - sed -i "s|web/%domain%/stats/auth.*|conf/web/%domain%.auth|" \ $VESTA/data/templates/web/nginx/*/*tpl >/dev/null 2>&1 +if [ "$WEB_SYSTEM" != 'nginx' ]; then + exit +fi + check=`egrep "STATS_USER='([0-9]|[a-Z].*)'" $VESTA/data/users/*/web.conf` if [ ! -z "$check" ]; then for user in $(echo $check |cut -f1 -d: |cut -f7 -d/); do