mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 21:04:07 -07:00
replaced V_QUEUE variable
This commit is contained in:
parent
ae9da60d42
commit
b4eda88053
4 changed files with 11 additions and 5 deletions
|
@ -71,7 +71,8 @@ cat $WEBTPL/$type.tpl |\
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
|
|
||||||
# Schedule statistic processing
|
# Schedule statistic processing
|
||||||
echo "$BIN/v_update_web_domain_stat $user $domain" >> $V_QUEUE/stats.pipe
|
echo "$BIN/v_update_web_domain_stat $user $domain" >> \
|
||||||
|
$VESTA/data/queue/stats.pipe
|
||||||
|
|
||||||
# Update config
|
# Update config
|
||||||
update_object_value 'web' 'DOMAIN' "$domain" '$STATS' "$type"
|
update_object_value 'web' 'DOMAIN' "$domain" '$STATS' "$type"
|
||||||
|
|
|
@ -83,7 +83,7 @@ fi
|
||||||
|
|
||||||
# Checking stats
|
# Checking stats
|
||||||
if [ ! -z "$STATS" ] && [ "$STATS" != 'no' ]; then
|
if [ ! -z "$STATS" ] && [ "$STATS" != 'no' ]; then
|
||||||
sed -i "/ $domain$/d" $V_QUEUE/stats.pipe
|
sed -i "/ $domain$/d" $VESTA/data/queue/stats.pipe
|
||||||
rm -f $HOMEDIR/$user/conf/web/$STATS.$domain.conf
|
rm -f $HOMEDIR/$user/conf/web/$STATS.$domain.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -56,7 +56,7 @@ rm -f $HOMEDIR/$user/conf/web/$STATS.$domain.conf
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
|
|
||||||
# Deleting pipe command
|
# Deleting pipe command
|
||||||
sed -i "/ $domain$/d" $V_QUEUE/stats.pipe
|
sed -i "/ $domain$/d" $VESTA/data/queue/stats.pipe
|
||||||
|
|
||||||
# Update config
|
# Update config
|
||||||
update_object_value 'web' 'DOMAIN' "$domain" '$STATS' ''
|
update_object_value 'web' 'DOMAIN' "$domain" '$STATS' ''
|
||||||
|
|
|
@ -70,6 +70,11 @@ for domain in $(shell_list) ; do
|
||||||
if [ -e "$WEBTPL/skel/document_errors/" ]; then
|
if [ -e "$WEBTPL/skel/document_errors/" ]; then
|
||||||
cp -r $WEBTPL/skel/document_errors/ $HOMEDIR/$user/web/$domain/
|
cp -r $WEBTPL/skel/document_errors/ $HOMEDIR/$user/web/$domain/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
touch /var/log/httpd/domains/$domain.bytes \
|
||||||
|
/var/log/httpd/domains/$domain.log \
|
||||||
|
/var/log/httpd/domains/$domain.error.log
|
||||||
|
|
||||||
chmod 551 $HOMEDIR/$user/web/$domain
|
chmod 551 $HOMEDIR/$user/web/$domain
|
||||||
chmod 751 $HOMEDIR/$user/web/$domain/private
|
chmod 751 $HOMEDIR/$user/web/$domain/private
|
||||||
chmod 751 $HOMEDIR/$user/web/$domain/cgi-bin
|
chmod 751 $HOMEDIR/$user/web/$domain/cgi-bin
|
||||||
|
@ -132,9 +137,9 @@ for domain in $(shell_list) ; do
|
||||||
> $HOMEDIR/$user/conf/web/$STATS.$domain.conf
|
> $HOMEDIR/$user/conf/web/$STATS.$domain.conf
|
||||||
|
|
||||||
stats_string="$BIN/v_update_web_domain_stat $user $domain"
|
stats_string="$BIN/v_update_web_domain_stat $user $domain"
|
||||||
check_stats_pipe=$(grep "$stats_string" $V_QUEUE/stats.pipe)
|
check_stats_pipe=$(grep "$stats_string" $VESTA/data/queue/stats.pipe)
|
||||||
if [ -z "$check_stats_pipe" ]; then
|
if [ -z "$check_stats_pipe" ]; then
|
||||||
echo "$stats_string" >> $V_QUEUE/stats.pipe
|
echo "$stats_string" >> $VESTA/data/queue/stats.pipe
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -z "$STATS_USER" ]; then
|
if [ ! -z "$STATS_USER" ]; then
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue