Subversion Repositories SmartDukaan

Rev

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

Rev 13501 Rev 13502
Line 65... Line 65...
65
 
65
 
66
if [ -z $a1 ]
66
if [ -z $a1 ]
67
then
67
then
68
	echo "a1 is empty"
68
	echo "a1 is empty"
69
else
69
else
70
	echo "All ites - $a1"
70
	echo "All items - $a1"
71
	mysqldump -uroot -pshop2020 catalog item --replace --no-create-info --where="id in ($a1)" >> ${MYSQL_DUMP}
71
	mysqldump -uroot -pshop2020 catalog item --replace --no-create-info --where="id in ($a1)" >> ${MYSQL_DUMP}
72
	if [ "$1" == "PROD" ]
72
	if [ "$1" == "PROD" ]
73
	then
73
	then
74
		mysql -uroot -pshop2020 catalog -e "truncate tmpitem;insert into tmpitem SELECT * FROM item"
74
		mysql -uroot -pshop2020 catalog -e "truncate tmpitem;insert into tmpitem SELECT * FROM item"
75
	else
75
	else