summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packaging/solaris/postinstall_check.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/packaging/solaris/postinstall_check.sh b/packaging/solaris/postinstall_check.sh
index e58ea394b8e..e61c670c384 100644
--- a/packaging/solaris/postinstall_check.sh
+++ b/packaging/solaris/postinstall_check.sh
@@ -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"