summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorMurthy Narkedimilli <murthy.narkedimilli@oracle.com>2013-05-15 15:37:20 +0200
committerMurthy Narkedimilli <murthy.narkedimilli@oracle.com>2013-05-15 15:37:20 +0200
commit9dc7243bdd3a7787115b76b60da004a5ca7ac0e8 (patch)
tree868fce06afb519e506ece636f6a3b75bea9c595f /packaging
parentcdd8d08ffcaa685f77005668cdf7ea3e44ee1797 (diff)
downloadmariadb-git-9dc7243bdd3a7787115b76b60da004a5ca7ac0e8.tar.gz
Bug 16812255 - 5.5.32 PKG INSTALLATION FAILED DURING MYSQL_INSTALL_DB EXECUTION
Diffstat (limited to 'packaging')
-rw-r--r--packaging/solaris/CMakeLists.txt2
-rw-r--r--packaging/solaris/postinstall_check.sh (renamed from packaging/solaris/postinstall-solaris.sh)50
2 files changed, 1 insertions, 51 deletions
diff --git a/packaging/solaris/CMakeLists.txt b/packaging/solaris/CMakeLists.txt
index 02881e0af8f..6add0d81950 100644
--- a/packaging/solaris/CMakeLists.txt
+++ b/packaging/solaris/CMakeLists.txt
@@ -22,7 +22,7 @@
# It is important not to pollute "/usr/bin".
SET(inst_location ${INSTALL_SUPPORTFILESDIR})
-FOREACH(script postinstall-solaris)
+FOREACH(script postinstall_check)
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${script}.sh
${CMAKE_CURRENT_BINARY_DIR}/${script} COPYONLY )
diff --git a/packaging/solaris/postinstall-solaris.sh b/packaging/solaris/postinstall_check.sh
index 027969fcf0e..e58ea394b8e 100644
--- a/packaging/solaris/postinstall-solaris.sh
+++ b/packaging/solaris/postinstall_check.sh
@@ -58,67 +58,17 @@ fi
chown -R $myuser:$mygroup $mydatadir
-# Solaris patch 119255 (somewhere around revision 42) changes the behaviour
-# of pkgadd to set TMPDIR internally to a root-owned install directory. This
-# has the unfortunate side effect of breaking running mysql_install_db with
-# the --user=mysql argument as mysqld uses TMPDIR if set, and is unable to
-# write temporary tables to that directory. To work around this issue, we
-# create a subdirectory inside TMPDIR (if set) for mysqld to write to.
-#
-# Idea from Ben Hekster <heksterb@gmail.com> in bug#31164
-
-if [ -n "$TMPDIR" ] ; then
- savetmpdir="$TMPDIR"
- TMPDIR="$TMPDIR/mysql.$$"
- export TMPDIR
- mkdir "$TMPDIR"
- chown $myuser:$mygroup "$TMPDIR"
-fi
-
if [ -n "$INSTALL" ] ; then
# We install/update the system tables
(
cd "$mybasedir"
scripts/mysql_install_db \
--rpm \
- --random-passwords \
--user=mysql \
--basedir="$mybasedir" \
--datadir=$mydatadir
)
fi
-if [ -n "$savetmpdir" ] ; then
- TMPDIR="$savetmpdir"
-fi
-
-# ----------------------------------------------------------------------
-
-# Handle situation there is old start script installed already
-
-# If old start script is a soft link, we just remove it
-[ -h "$mystart" ] && rm -f "$mystart"
-
-# If old start script is a file, we rename it
-[ -f "$mystart" ] && mv -f "$mystart" "$mystart.old.$$"
-
-# ----------------------------------------------------------------------
-
-# We create a copy of an unmodified start script,
-# as a reference for the one maybe modifying it
-
-cp -f "$mystart1.in" "$mystart.in" || exit 1
-
-# We rewrite some scripts
-
-for script in "$mystart" "$mystart1" "$myinstdb" ; do
- script_in="$script.in"
- sed -e "s,@basedir@,$mybasedir,g" \
- -e "s,@datadir@,$mydatadir,g" "$script_in" > "$script"
- chmod u+x $script
-done
-
-rm -f "$mystart.in"
-
exit 0