Skip to content

Commit b4eda88

Browse files
committed
replaced V_QUEUE variable
1 parent ae9da60 commit b4eda88

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

bin/v_add_web_domain_stats

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ cat $WEBTPL/$type.tpl |\
7171
#----------------------------------------------------------#
7272

7373
# Schedule statistic processing
74-
echo "$BIN/v_update_web_domain_stat $user $domain" >> $V_QUEUE/stats.pipe
74+
echo "$BIN/v_update_web_domain_stat $user $domain" >> \
75+
$VESTA/data/queue/stats.pipe
7576

7677
# Update config
7778
update_object_value 'web' 'DOMAIN' "$domain" '$STATS' "$type"

bin/v_delete_web_domain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ fi
8383

8484
# Checking stats
8585
if [ ! -z "$STATS" ] && [ "$STATS" != 'no' ]; then
86-
sed -i "/ $domain$/d" $V_QUEUE/stats.pipe
86+
sed -i "/ $domain$/d" $VESTA/data/queue/stats.pipe
8787
rm -f $HOMEDIR/$user/conf/web/$STATS.$domain.conf
8888
fi
8989

bin/v_delete_web_domain_stats

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ rm -f $HOMEDIR/$user/conf/web/$STATS.$domain.conf
5656
#----------------------------------------------------------#
5757

5858
# Deleting pipe command
59-
sed -i "/ $domain$/d" $V_QUEUE/stats.pipe
59+
sed -i "/ $domain$/d" $VESTA/data/queue/stats.pipe
6060

6161
# Update config
6262
update_object_value 'web' 'DOMAIN' "$domain" '$STATS' ''

bin/v_rebuild_web_domains

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ for domain in $(shell_list) ; do
7070
if [ -e "$WEBTPL/skel/document_errors/" ]; then
7171
cp -r $WEBTPL/skel/document_errors/ $HOMEDIR/$user/web/$domain/
7272
fi
73+
74+
touch /var/log/httpd/domains/$domain.bytes \
75+
/var/log/httpd/domains/$domain.log \
76+
/var/log/httpd/domains/$domain.error.log
77+
7378
chmod 551 $HOMEDIR/$user/web/$domain
7479
chmod 751 $HOMEDIR/$user/web/$domain/private
7580
chmod 751 $HOMEDIR/$user/web/$domain/cgi-bin
@@ -132,9 +137,9 @@ for domain in $(shell_list) ; do
132137
> $HOMEDIR/$user/conf/web/$STATS.$domain.conf
133138

134139
stats_string="$BIN/v_update_web_domain_stat $user $domain"
135-
check_stats_pipe=$(grep "$stats_string" $V_QUEUE/stats.pipe)
140+
check_stats_pipe=$(grep "$stats_string" $VESTA/data/queue/stats.pipe)
136141
if [ -z "$check_stats_pipe" ]; then
137-
echo "$stats_string" >> $V_QUEUE/stats.pipe
142+
echo "$stats_string" >> $VESTA/data/queue/stats.pipe
138143
fi
139144

140145
if [ ! -z "$STATS_USER" ]; then

0 commit comments

Comments
 (0)