If the mysql database is populated with gnizr data, running the 'loadsch.sh' script should warn the user that the existing db data will be lost.
Comment #1
Posted on May 30, 2008 by Helpful BearComment deleted
Comment #2
Posted on Jun 4, 2008 by Helpful BearComment deleted
Comment #3
Posted on Jun 4, 2008 by Helpful BearBased on rick's suggestion (may 29, 08),
http://code.google.com/p/gnizr/wiki/SetupGnizrDatabase
I modified his script and added the following:
rows=mysql -u $USER -p${PASS} -e "show tables" $DB |wc -l
if [ $rows -gt 0 ]
then echo "Looks like the gnizr has already been installed."
echo "Enter YES to continue (ALL EXISTING DATA WILL BE LOST!): "
read input
if [ "$input" != "YES" ]
then echo "Quit! No changes are made."
exit 1
fi
fi
Status: Fixed
Labels:
Type-Enhancement
Priority-Medium
Version-2_4_0_m4