diff options
author | Murthy Narkedimilli <murthy.narkedimilli@oracle.com> | 2013-05-16 10:24:26 +0200 |
---|---|---|
committer | Murthy Narkedimilli <murthy.narkedimilli@oracle.com> | 2013-05-16 10:24:26 +0200 |
commit | 0e5b0d503ea25204b61a6780b499f96f45eb6057 (patch) | |
tree | 4ebba4687e5611a71ca23c574b0d69540e396e6f /packaging | |
parent | 36f03b84a4ab276b8f62d63092e97c4c46da2a81 (diff) | |
download | mariadb-git-0e5b0d503ea25204b61a6780b499f96f45eb6057.tar.gz |
Changes to verify the solaris upgrade issue.
Diffstat (limited to 'packaging')
-rw-r--r-- | packaging/solaris/postinstall_check.sh | 5 |
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" |