Subversion Repositories SmartDukaan

Rev

Rev 7094 | Rev 7667 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7094 Rev 7665
Line 3... Line 3...
3
sleep 2
3
sleep 2
4
cp /tmp/popularity.json /tmp/popularity_bk.json
4
cp /tmp/popularity.json /tmp/popularity_bk.json
5
sleep 2
5
sleep 2
6
sed -i '1d' /tmp/popularity.json
6
sed -i '1d' /tmp/popularity.json
7
sleep 2
7
sleep 2
-
 
8
mysql -u root -pshop2020 -h 192.168.190.113 catalog -e "SET SESSION group_concat_max_len = 100000;select CONCAT('[', GROUP_CONCAT(id),']') from item where status=3 and risky=1;" > /tmp/availability.json
-
 
9
sleep 2
-
 
10
cp /tmp/availability.json /tmp/availability_bk.json
-
 
11
sleep 2
-
 
12
sed -i '1d' /tmp/availability.json
-
 
13
sleep 2
8
scp /tmp/popularity.json root@staging:/var/lib/tomcat6/webapps/export/
14
scp /tmp/popularity.json /tmp/availability.json root@staging:/var/lib/tomcat6/webapps/export/