Subversion Repositories SmartDukaan

Rev

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

Rev 10577 Rev 10636
Line 92... Line 92...
92
if [ -e dump.tgz ];
92
if [ -e dump.tgz ];
93
then
93
then
94
	echo "Updating mongo for site content"
94
	echo "Updating mongo for site content"
95
	echo "======================================================="
95
	echo "======================================================="
96
	tar -zxf dump.tgz
96
	tar -zxf dump.tgz
-
 
97
	unlink dump
97
	ln -s dump-${LATEST_TIMESTAMP} dump
98
	ln -s dump-${LATEST_TIMESTAMP} dump
98
	mongorestore --collection siteContent --db CONTENT dump/CONTENT/siteContent.bson
99
	mongorestore --collection siteContent --db CONTENT dump/CONTENT/siteContent.bson
99
	STATUS=$(($STATUS+$?))
100
	STATUS=$(($STATUS+$?))
100
fi
101
fi
101
 
102