Changes to verify the solaris upgrade issue.

This commit is contained in:
Murthy Narkedimilli 2013-05-16 10:24:26 +02:00
parent 36f03b84a4
commit 0e5b0d503e

View File

@ -43,7 +43,8 @@ mystart=/etc/init.d/mysql
# Check: Is this a first installation, or an upgrade ?
if [ -d "$mydatadir/mysql" ] ; then
: # If the directory for system table files exists, we assume an upgrade.
# If the directory for system table files exists, we assume an upgrade.
INSTALL=upgrade
else
INSTALL=new # This is a new installation, the directory will soon be created.
fi
@ -58,7 +59,7 @@ fi
chown -R $myuser:$mygroup $mydatadir
if [ -n "$INSTALL" ] ; then
if [ "$INSTALL" -eq "new" ] ; then
# We install/update the system tables
(
cd "$mybasedir"