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
b4fbb418
Commit
b4fbb418
authored
Feb 06, 2018
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove bash-ish from SST scripts
replace with awk (yuck!), avoiding gensub (which wasn't recognized)
parent
00855a62
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
7 deletions
+1
-7
scripts/wsrep_sst_common.sh
scripts/wsrep_sst_common.sh
+1
-7
No files found.
scripts/wsrep_sst_common.sh
View file @
b4fbb418
...
@@ -36,13 +36,7 @@ case "$1" in
...
@@ -36,13 +36,7 @@ case "$1" in
# Break address string into host:port/path parts
# Break address string into host:port/path parts
#
#
readonly
WSREP_SST_OPT_HOST
=
${
WSREP_SST_OPT_ADDR
%%[
:/]
*
}
readonly
WSREP_SST_OPT_HOST
=
${
WSREP_SST_OPT_ADDR
%%[
:/]
*
}
if
[
${
WSREP_SST_OPT_HOST
:0:1
}
=
'['
]
readonly
WSREP_SST_OPT_HOST_UNESCAPED
=
`
echo
"
$WSREP_SST_OPT_HOST
"
|awk
'{if(match($0,/^\[.*\]$/)) $0=substr($0,2,RLENGTH-2);print}'
`
then
# IPv6 notation
readonly
WSREP_SST_OPT_HOST_UNESCAPED
=
${
WSREP_SST_OPT_HOST
:1:-1
}
else
readonly
WSREP_SST_OPT_HOST_UNESCAPED
=
${
WSREP_SST_OPT_HOST
}
fi
readonly
WSREP_SST_OPT_ADDR_PORT
=
$(
echo
$WSREP_SST_OPT_ADDR
|
\
readonly
WSREP_SST_OPT_ADDR_PORT
=
$(
echo
$WSREP_SST_OPT_ADDR
|
\
cut
-d
']'
-f
2 |
cut
-s
-d
':'
-f
2 |
cut
-d
'/'
-f
1
)
cut
-d
']'
-f
2 |
cut
-s
-d
':'
-f
2 |
cut
-d
'/'
-f
1
)
readonly
WSREP_SST_OPT_PATH
=
${
WSREP_SST_OPT_ADDR
#*/
}
readonly
WSREP_SST_OPT_PATH
=
${
WSREP_SST_OPT_ADDR
#*/
}
...
...
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