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
f87c25e7
Commit
f87c25e7
authored
Oct 13, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge lgrimmer@bk-internal.mysql.com:/home/bk/mysql-4.0
into mysql.com:/space/my/mysql-4.0
parents
9043a22c
809e8bf0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
support-files/mysql.spec.sh
support-files/mysql.spec.sh
+11
-4
No files found.
support-files/mysql.spec.sh
View file @
f87c25e7
...
...
@@ -2,6 +2,7 @@
%define release 0
%define license GPL
%define mysqld_user mysql
%define mysqld_group mysql
%define server_suffix
-standard
%define mysqldatadir /var/lib/mysql
...
...
@@ -371,18 +372,20 @@ fi
# Create a MySQL user and group. Do not report any problems if it already
# exists.
groupadd
-r
%
{
mysqld_user
}
2> /dev/null
||
true
useradd
-M
-r
-d
$mysql_datadir
-s
/bin/bash
-c
"MySQL server"
-g
%
{
mysqld_user
}
%
{
mysqld_user
}
2> /dev/null
||
true
groupadd
-r
%
{
mysqld_group
}
2> /dev/null
||
true
useradd
-M
-r
-d
$mysql_datadir
-s
/bin/bash
-c
"MySQL server"
-g
%
{
mysqld_group
}
%
{
mysqld_user
}
2> /dev/null
||
true
# The user may already exist, make sure it has the proper group nevertheless (BUG#12823)
usermod
-g
%
{
mysqld_group
}
%
{
mysqld_user
}
2> /dev/null
||
true
# Change permissions so that the user that will run the MySQL daemon
# owns all database files.
chown
-R
%
{
mysqld_user
}
:%
{
mysqld_
user
}
$mysql_datadir
chown
-R
%
{
mysqld_user
}
:%
{
mysqld_
group
}
$mysql_datadir
# Initiate databases
%
{
_bindir
}
/mysql_install_db
-IN-RPM
--user
=
%
{
mysqld_user
}
# Change permissions again to fix any new files.
chown
-R
%
{
mysqld_user
}
:%
{
mysqld_
user
}
$mysql_datadir
chown
-R
%
{
mysqld_user
}
:%
{
mysqld_
group
}
$mysql_datadir
# Fix permissions for the permission database so that only the user
# can read them.
...
...
@@ -562,6 +565,10 @@ fi
# itself - note that they must be ordered by date (important when
# merging BK trees)
%changelog
*
Thu Oct 13 2005 Lenz Grimmer <lenz@mysql.com>
- added a usermod call to assign a potential existing mysql user to the
correct user group
(
BUG#12823
)
*
Thu Sep 29 2005 Lenz Grimmer <lenz@mysql.com>
- fixed the removing of the RPM_BUILD_ROOT
in
the %clean section
(
the
...
...
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