File tree Expand file tree Collapse file tree 4 files changed +11
-5
lines changed
Expand file tree Collapse file tree 4 files changed +11
-5
lines changed Original file line number Diff line number Diff 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
7778update_object_value ' web' ' DOMAIN' " $domain " ' $STATS' " $type "
Original file line number Diff line number Diff line change 8383
8484# Checking stats
8585if [ ! -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
8888fi
8989
Original file line number Diff line number Diff 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
6262update_object_value ' web' ' DOMAIN' " $domain " ' $STATS' ' '
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments