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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
b1895fb8
Commit
b1895fb8
authored
Aug 26, 2015
by
Balasubramanian Kandasamy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug#21527467 - RPM SCRIPTS FAIL WITH MULTIPLE DATADIR
parent
e414cbff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
support-files/mysql.spec.sh
support-files/mysql.spec.sh
+7
-7
No files found.
support-files/mysql.spec.sh
View file @
b1895fb8
...
...
@@ -635,7 +635,7 @@ install -m 644 "%{malloc_lib_source}" \
# Check local settings to support them.
if
[
-x
%
{
_bindir
}
/my_print_defaults
]
then
mysql_datadir
=
`
%
{
_bindir
}
/my_print_defaults server mysqld |
grep
'^--datadir='
|
sed
-n
's/--datadir=//p'
`
mysql_datadir
=
`
%
{
_bindir
}
/my_print_defaults server mysqld |
grep
'^--datadir='
|
tail
-1
|
sed
-n
's/--datadir=//p'
`
PID_FILE_PATT
=
`
%
{
_bindir
}
/my_print_defaults server mysqld |
grep
'^--pid-file='
|
sed
-n
's/--pid-file=//p'
`
fi
if
[
-z
"
$mysql_datadir
"
]
...
...
@@ -740,7 +740,7 @@ esac
STATUS_FILE
=
$mysql_datadir
/RPM_UPGRADE_MARKER
if
[
-f
$STATUS_FILE
]
;
then
if
[
-f
"
$STATUS_FILE
"
]
;
then
echo
"Some previous upgrade was not finished:"
ls
-ld
$STATUS_FILE
echo
"Please check its status, then do"
...
...
@@ -811,7 +811,7 @@ fi
# Check local settings to support them.
if
[
-x
%
{
_bindir
}
/my_print_defaults
]
then
mysql_datadir
=
`
%
{
_bindir
}
/my_print_defaults server mysqld |
grep
'^--datadir='
|
sed
-n
's/--datadir=//p'
`
mysql_datadir
=
`
%
{
_bindir
}
/my_print_defaults server mysqld |
grep
'^--datadir='
|
tail
-1
|
sed
-n
's/--datadir=//p'
`
fi
if
[
-z
"
$mysql_datadir
"
]
then
...
...
@@ -824,8 +824,8 @@ STATUS_FILE=$mysql_datadir/RPM_UPGRADE_MARKER
# ----------------------------------------------------------------------
# Create data directory if needed, check whether upgrade or install
# ----------------------------------------------------------------------
if
[
!
-d
$mysql_datadir
]
;
then
mkdir
-m
755
$mysql_datadir
;
fi
if
[
-f
$STATUS_FILE
]
;
then
if
[
!
-d
"
$mysql_datadir
"
]
;
then
mkdir
-m
755
"
$mysql_datadir
"
;
fi
if
[
-f
"
$STATUS_FILE
"
]
;
then
SERVER_TO_START
=
`
grep
'^SERVER_TO_START='
$STATUS_FILE
|
cut
-c17-
`
else
SERVER_TO_START
=
''
...
...
@@ -1003,7 +1003,7 @@ fi
# Check local settings to support them.
if
[
-x
%
{
_bindir
}
/my_print_defaults
]
then
mysql_datadir
=
`
%
{
_bindir
}
/my_print_defaults server mysqld |
grep
'^--datadir='
|
sed
-n
's/--datadir=//p'
`
mysql_datadir
=
`
%
{
_bindir
}
/my_print_defaults server mysqld |
grep
'^--datadir='
|
tail
-1
|
sed
-n
's/--datadir=//p'
`
fi
if
[
-z
"
$mysql_datadir
"
]
then
...
...
@@ -1014,7 +1014,7 @@ NEW_VERSION=%{mysql_version}-%{release}
STATUS_FILE
=
$mysql_datadir
/RPM_UPGRADE_MARKER-LAST
# Note the difference!
STATUS_HISTORY
=
$mysql_datadir
/RPM_UPGRADE_HISTORY
if
[
-f
$STATUS_FILE
]
;
then
if
[
-f
"
$STATUS_FILE
"
]
;
then
SERVER_TO_START
=
`
grep
'^SERVER_TO_START='
$STATUS_FILE
|
cut
-c17-
`
else
# This should never happen, but let's be prepared
...
...
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