replaced V_QUEUE variable

This commit is contained in:
Serghey Rodin 2012-08-17 16:39:54 +03:00
commit b4eda88053
4 changed files with 11 additions and 5 deletions

View file

@ -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"

View file

@ -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

View file

@ -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' ''

View file

@ -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