Subversion Repositories SmartDukaan

Rev

Rev 10391 | Rev 10393 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
3276 chandransh 1
#!/bin/bash
10392 amit.gupta 2
PRGDIR=`dirname $(readlink -f "$PRG")`
3
STATUS_CATALOG_GENERATION=`cat $PRGDIR/status`
10391 amit.gupta 4
if [ $STATUS_CATALOG_GENERATION -eq 1 ]; then
5
	sendEmail -f build@shop2020.in -t eng@shop2020.in -u "Imp: COULDNT PUSHED NEW CONTENT" -s smtp.gmail.com:587  -xu build@shop2020.in  -xp cafe@nes -o tls=yes -m "Thanks" 
6
	exit 1
7
 
8
fi 
3276 chandransh 9
if [ -z ${DATE}  ]
10
then
11
	DATE=`date -d '2 day ago' +"%Y-%b-%d"`
12
fi
13
 
14
if [ -z ${EXPORT_PATH} ]
15
then
16
	EXPORT_PATH="/var/lib/tomcat6/webapps/export"
17
fi
18
 
3934 mandeep.dh 19
rm -rf ${EXPORT_PATH}/helpdocs-${DATE}* ${EXPORT_PATH}/javascripts-${DATE}* ${EXPORT_PATH}/partners-${DATE}* ${EXPORT_PATH}/solr-${DATE}* ${EXPORT_PATH}/html/entities-${DATE}*
3276 chandransh 20