Run mysql-prepare-db-dir as non-root

This commit is contained in:
Honza Horak 2017-08-28 22:59:20 +02:00
parent a0ba2c4a94
commit fef8a6b54d
2 changed files with 2 additions and 1 deletions

View File

@ -1463,6 +1463,7 @@ fi
Resolves: #1485777
- Allow 4567 port for tcp as well
- 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
- Rebase to 10.2.8

View File

@ -69,8 +69,8 @@ start(){
# already running, do nothing
action $"Starting $prog: " /bin/true
else
@libexecdir@/mysql-prepare-db-dir $MYUSER $MYGROUP || return 4
@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.
# In many cases mysqld_safe would arrive at the same conclusions anyway