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
f6c5e917
Commit
f6c5e917
authored
Mar 27, 2023
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 11.0 into 11.1
parents
e371b1e2
31487f4b
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
5 deletions
+14
-5
debian/autobake-deb.sh
debian/autobake-deb.sh
+5
-1
debian/mariadb-server.mariadb.init
debian/mariadb-server.mariadb.init
+4
-1
debian/mariadb-server.preinst
debian/mariadb-server.preinst
+4
-2
scripts/mysql_install_db.sh
scripts/mysql_install_db.sh
+1
-1
No files found.
debian/autobake-deb.sh
View file @
f6c5e917
...
...
@@ -201,7 +201,11 @@ then
for
package
in
*
.deb
do
echo
"
$package
"
|
cut
-d
'_'
-f
1
dpkg-deb
-c
"
$package
"
|
awk
'{print $1 " " $2 " " $6 " " $7 " " $8}'
|
sort
-k
3
# shellcheck disable=SC2034
dpkg-deb
-c
"
$package
"
|
while
IFS
=
" "
read
-r
col1 col2 col3 col4 col5 col6 col7 col8
do
echo
"
$col1
$col2
$col6
$col7
$col8
"
|
sort
-k
3
done
echo
"------------------------------------------------"
done
fi
...
...
debian/mariadb-server.mariadb.init
View file @
f6c5e917
...
...
@@ -84,7 +84,10 @@ sanity_checks() {
# check for diskspace shortage
datadir
=
`
mariadbd_get_param datadir
`
if
LC_ALL
=
C
BLOCKSIZE
=
df
--portability
$datadir
/. |
tail
-n
1 |
awk
'{ exit ($4>4096) }'
;
then
# As preset blocksize of GNU df is 1024 then available bytes is $df_available_blocks * 1024
# 4096 blocks is then lower than 4 MB
df_available_blocks
=
`
LC_ALL
=
C
BLOCKSIZE
=
df
--output
=
avail
"
$datadir
"
|
tail
-n
1
`
if
[
"
$df_available_blocks
"
-lt
"4096"
]
;
then
log_failure_msg
"
$0
: ERROR: The partition with
$datadir
is too full!"
echo
"ERROR: The partition with
$datadir
is too full!"
|
$ERR_LOGGER
exit
1
...
...
debian/mariadb-server.preinst
View file @
f6c5e917
...
...
@@ -196,8 +196,10 @@ if [ ! -d $mysql_datadir ] && [ ! -L $mysql_datadir ]; then
mkdir
-Z
$mysql_datadir
fi
# checking disc space
if
LC_ALL
=
C
BLOCKSIZE
=
df
--portability
$mysql_datadir
/. |
tail
-n
1 |
awk
'{ exit ($4>1000) }'
;
then
# As preset blocksize of GNU df is 1024 then available bytes is $df_available_blocks * 1024
# 4096 blocks is then lower than 4 MB
df_available_blocks
=
`
LC_ALL
=
C
BLOCKSIZE
=
df
--output
=
avail
"
$datadir
"
|
tail
-n
1
`
if
[
"
$df_available_blocks
"
-lt
"4096"
]
;
then
echo
"ERROR: There's not enough space in
$mysql_datadir
/"
1>&2
db_stop
exit
1
...
...
scripts/mysql_install_db.sh
View file @
f6c5e917
...
...
@@ -476,7 +476,7 @@ fi
if
test
"
$ip_only
"
-eq
1
then
hostname
=
`
echo
"
$resolved
"
|
awk
'/ /{print $6}'
`
hostname
=
`
echo
"
$resolved
"
|
while
read
a
;
do
echo
${
a
##*
}
;
done
`
fi
# Create database directories
...
...
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