mirror of
https://github.com/myvesta/vesta
synced 2025-07-05 20:41:53 -07:00
security fix / thanks to Christopher Tarquini
This commit is contained in:
parent
ba14a64499
commit
757e065602
636 changed files with 680 additions and 637 deletions
19
upd/fix_nginx_auth.sh
Executable file
19
upd/fix_nginx_auth.sh
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/bin/bash
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
$VESTA/bin/v-rebuild-web-domains $user no >/dev/null 2>&1
|
||||
done
|
||||
$VESTA/bin/v-restart-service nginx
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue