Export to GitHub

gnizr - issue #67

Warn db overwrite when running the install script


Posted on May 30, 2008 by Helpful Bear

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 Bear

Comment deleted

Comment #2

Posted on Jun 4, 2008 by Helpful Bear

Comment deleted

Comment #3

Posted on Jun 4, 2008 by Helpful Bear

Based 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