mirror of
https://github.com/myvesta/vesta
synced 2025-07-06 04:51:54 -07:00
Probably good idea to not to rebuild web domains if Apache is frontend web server
This commit is contained in:
parent
d5f78d5aa2
commit
f619d61df7
1 changed files with 4 additions and 4 deletions
|
@ -3,13 +3,13 @@
|
||||||
source /etc/profile.d/vesta.sh
|
source /etc/profile.d/vesta.sh
|
||||||
source /usr/local/vesta/conf/vesta.conf
|
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|" \
|
sed -i "s|web/%domain%/stats/auth.*|conf/web/%domain%.auth|" \
|
||||||
$VESTA/data/templates/web/nginx/*/*tpl >/dev/null 2>&1
|
$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`
|
check=`egrep "STATS_USER='([0-9]|[a-Z].*)'" $VESTA/data/users/*/web.conf`
|
||||||
if [ ! -z "$check" ]; then
|
if [ ! -z "$check" ]; then
|
||||||
for user in $(echo $check |cut -f1 -d: |cut -f7 -d/); do
|
for user in $(echo $check |cut -f1 -d: |cut -f7 -d/); do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue