We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5f78d5 commit f619d61Copy full SHA for f619d61
upd/fix_nginx_auth.sh
@@ -3,13 +3,13 @@
3
source /etc/profile.d/vesta.sh
4
source /usr/local/vesta/conf/vesta.conf
5
6
-#if [ "$WEB_SYSTEM" != 'nginx' ]; then
7
-# exit
8
-#fi
9
-
10
sed -i "s|web/%domain%/stats/auth.*|conf/web/%domain%.auth|" \
11
$VESTA/data/templates/web/nginx/*/*tpl >/dev/null 2>&1
12
+if [ "$WEB_SYSTEM" != 'nginx' ]; then
+ exit
+fi
+
13
check=`egrep "STATS_USER='([0-9]|[a-Z].*)'" $VESTA/data/users/*/web.conf`
14
if [ ! -z "$check" ]; then
15
for user in $(echo $check |cut -f1 -d: |cut -f7 -d/); do
0 commit comments