Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
8e572235
Commit
8e572235
authored
May 15, 2013
by
Murthy Narkedimilli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 16812255 - 5.5.32 PKG INSTALLATION FAILED DURING MYSQL_INSTALL_DB EXECUTION
parent
3ba53d17
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
51 deletions
+1
-51
packaging/solaris/CMakeLists.txt
packaging/solaris/CMakeLists.txt
+1
-1
packaging/solaris/postinstall_check.sh
packaging/solaris/postinstall_check.sh
+0
-50
No files found.
packaging/solaris/CMakeLists.txt
View file @
8e572235
...
...
@@ -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
)
...
...
packaging/solaris/postinstall
-solaris
.sh
→
packaging/solaris/postinstall
_check
.sh
View file @
8e572235
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment