Run mysql-prepare-db-dir as non-root
This commit is contained in:
parent
a0ba2c4a94
commit
fef8a6b54d
@ -1463,6 +1463,7 @@ fi
|
|||||||
Resolves: #1485777
|
Resolves: #1485777
|
||||||
- Allow 4567 port for tcp as well
|
- Allow 4567 port for tcp as well
|
||||||
- Install mysql-wait-ready on RHEL-6 for the SysV init
|
- Install mysql-wait-ready on RHEL-6 for the SysV init
|
||||||
|
- Run mysql-prepare-db-dir as non-root
|
||||||
|
|
||||||
* Sun Aug 20 2017 Honza Horak <hhorak@redhat.com> - 3:10.2.8-1
|
* Sun Aug 20 2017 Honza Horak <hhorak@redhat.com> - 3:10.2.8-1
|
||||||
- Rebase to 10.2.8
|
- Rebase to 10.2.8
|
||||||
|
@ -69,8 +69,8 @@ start(){
|
|||||||
# already running, do nothing
|
# already running, do nothing
|
||||||
action $"Starting $prog: " /bin/true
|
action $"Starting $prog: " /bin/true
|
||||||
else
|
else
|
||||||
@libexecdir@/mysql-prepare-db-dir $MYUSER $MYGROUP || return 4
|
|
||||||
@libexecdir@/mysql-check-socket || return 1
|
@libexecdir@/mysql-check-socket || return 1
|
||||||
|
su - $MYUSER -s /bin/bash -c "@libexecdir@/mysql-prepare-db-dir $MYUSER $MYGROUP" || return 4
|
||||||
|
|
||||||
# Pass all the options determined above, to ensure consistent behavior.
|
# Pass all the options determined above, to ensure consistent behavior.
|
||||||
# In many cases mysqld_safe would arrive at the same conclusions anyway
|
# In many cases mysqld_safe would arrive at the same conclusions anyway
|
||||||
|
Loading…
Reference in New Issue
Block a user